Project

General

Profile

« Previous | Next » 

Revision b7074bc6

Added by Leszek Koltunski about 4 years ago

Lower requirements - now only OpenGL ES 3.0 is required; if running on such platform, OIT part of the API ( which is the only one which actually requires 3.1) is switched off.

View differences:

src/main/java/org/distorted/library/main/DistortedNode.java
19 19

  
20 20
package org.distorted.library.main;
21 21

  
22
import android.opengl.GLES31;
22
import android.opengl.GLES30;
23 23

  
24 24
import org.distorted.library.mesh.MeshBase;
25 25

  
......
159 159
    if( input.setAsInput() )
160 160
      {
161 161
      mState.apply();
162
      GLES31.glDisable(GLES31.GL_BLEND);
162
      GLES30.glDisable(GLES30.GL_BLEND);
163 163
      DistortedLibrary.drawPriv(mEffects, mMesh, surface, currTime);
164
      GLES31.glEnable(GLES31.GL_BLEND);
164
      GLES30.glEnable(GLES30.GL_BLEND);
165 165
      return 1;
166 166
      }
167 167

  

Also available in: Unified diff