Revision 41a85bb7
Added by Leszek Koltunski almost 6 years ago
src/main/java/org/distorted/examples/plainmonalisa/RenderThread.java | ||
---|---|---|
23 | 23 |
import android.graphics.BitmapFactory; |
24 | 24 |
import android.opengl.EGL14; |
25 | 25 |
import android.opengl.EGLSurface; |
26 |
import android.opengl.GLES30;
|
|
26 |
import android.opengl.GLES31;
|
|
27 | 27 |
import android.os.Looper; |
28 | 28 |
import android.util.Log; |
29 | 29 |
import android.view.Surface; |
30 | 30 |
import android.view.SurfaceHolder; |
31 | 31 |
import android.view.SurfaceView; |
32 | 32 |
|
33 |
import org.distorted.library.effect.EffectName; |
|
34 | 33 |
import org.distorted.library.effect.MatrixEffectMove; |
35 | 34 |
import org.distorted.library.effect.MatrixEffectScale; |
36 | 35 |
import org.distorted.library.effect.VertexEffectDistort; |
... | ... | |
119 | 118 |
|
120 | 119 |
private static void checkGlError(String op) |
121 | 120 |
{ |
122 |
int error = GLES30.glGetError();
|
|
121 |
int error = GLES31.glGetError();
|
|
123 | 122 |
|
124 |
if (error != GLES30.GL_NO_ERROR)
|
|
123 |
if (error != GLES31.GL_NO_ERROR)
|
|
125 | 124 |
{ |
126 | 125 |
String msg = op + ": glError 0x" + Integer.toHexString(error); |
127 | 126 |
Log.e(TAG, msg); |
Also available in: Unified diff
Convert everythig to GLES31 (there were some GLES30 remnants)