Revision 41a81a14
Added by Leszek Koltunski over 7 years ago
src/main/java/org/distorted/examples/effectqueue/EffectQueueRenderer.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; |
... | ... | |
129 | 129 |
|
130 | 130 |
public void onDrawFrame(GL10 glUnused) |
131 | 131 |
{ |
132 |
GLES20.glClear(GLES20.GL_COLOR_BUFFER_BIT | GLES20.GL_DEPTH_BUFFER_BIT);
|
|
132 |
GLES30.glClear(GLES30.GL_COLOR_BUFFER_BIT | GLES30.GL_DEPTH_BUFFER_BIT);
|
|
133 | 133 |
mScreen.renderTo(mTexture, mMesh, mEffects, System.currentTimeMillis() ); |
134 | 134 |
} |
135 | 135 |
|
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!)