Project

General

Profile

« Previous | Next » 

Revision 41a81a14

Added by Leszek Koltunski over 7 years ago

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!)

View differences:

src/main/java/org/distorted/examples/movingeffects/MovingEffectsRenderer.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.DistortedFramebuffer;
......
141 141
   
142 142
   public void onDrawFrame(GL10 glUnused)
143 143
     {   
144
     GLES20.glClear(GLES20.GL_COLOR_BUFFER_BIT | GLES20.GL_DEPTH_BUFFER_BIT);               
144
     GLES30.glClear(GLES30.GL_COLOR_BUFFER_BIT | GLES30.GL_DEPTH_BUFFER_BIT);               
145 145
       
146 146
     long time = System.currentTimeMillis();
147 147
      

Also available in: Unified diff