Revision 41a81a14
Added by Leszek Koltunski over 7 years ago
src/main/java/org/distorted/examples/dynamic/DynamicRenderer.java | ||
---|---|---|
26 | 26 |
import android.graphics.Canvas; |
27 | 27 |
import android.graphics.Paint; |
28 | 28 |
import android.graphics.Paint.Style; |
29 |
import android.opengl.GLES20;
|
|
29 |
import android.opengl.GLES30;
|
|
30 | 30 |
import android.opengl.GLSurfaceView; |
31 | 31 |
|
32 | 32 |
import org.distorted.library.DistortedEffects; |
... | ... | |
99 | 99 |
|
100 | 100 |
public void onDrawFrame(GL10 glUnused) |
101 | 101 |
{ |
102 |
GLES20.glClear(GLES20.GL_COLOR_BUFFER_BIT | GLES20.GL_DEPTH_BUFFER_BIT);
|
|
102 |
GLES30.glClear(GLES30.GL_COLOR_BUFFER_BIT | GLES30.GL_DEPTH_BUFFER_BIT);
|
|
103 | 103 |
|
104 | 104 |
long time = System.currentTimeMillis(); |
105 | 105 |
|
Also available in: Unified diff
Try using OpenGL ES 3.0 everywhere (but if device does not support it, try creating 2.0 context - this is important because of the emulator!)