Project

General

Profile

« Previous | Next » 

Revision 41a85bb7

Added by Leszek Koltunski almost 6 years ago

Convert everythig to GLES31 (there were some GLES30 remnants)

View differences:

src/main/java/org/distorted/examples/save/SaveRenderer.java
30 30

  
31 31
import org.distorted.examples.R;
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.VertexEffectSink;
......
47 46

  
48 47
import android.graphics.Bitmap;
49 48
import android.graphics.BitmapFactory;
50
import android.opengl.GLES30;
49
import android.opengl.GLES31;
51 50
import android.opengl.GLSurfaceView;
52 51
import android.os.Environment;
53 52

  
......
170 169

  
171 170
      if( textureID>=0 )
172 171
        {
173
        GLES30.glBindTexture(GLES30.GL_TEXTURE_2D, textureID);
174
        GLES30.glReadPixels( 0, 0, fW, fH, GLES30.GL_RGBA, GLES30.GL_UNSIGNED_BYTE, buf);
172
        GLES31.glBindTexture(GLES31.GL_TEXTURE_2D, textureID);
173
        GLES31.glReadPixels( 0, 0, fW, fH, GLES31.GL_RGBA, GLES31.GL_UNSIGNED_BYTE, buf);
175 174
        SaveWorkerThread.newBuffer(buf,fW,fH,mPath);
176 175
        }
177 176
      else

Also available in: Unified diff