Revision b7074bc6
Added by Leszek Koltunski almost 4 years ago
src/main/java/org/distorted/library/main/InternalSurface.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 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
25 | 25 |
// common parent class of Texture & OutputSurface; so that we can store either in Nodes. |
... | ... | |
64 | 64 |
{ |
65 | 65 |
if( mColorH[0]>0 ) |
66 | 66 |
{ |
67 |
GLES31.glActiveTexture(GLES31.GL_TEXTURE0);
|
|
68 |
GLES31.glBindTexture(GLES31.GL_TEXTURE_2D, mColorH[0]);
|
|
67 |
GLES30.glActiveTexture(GLES30.GL_TEXTURE0);
|
|
68 |
GLES30.glBindTexture(GLES30.GL_TEXTURE_2D, mColorH[0]);
|
|
69 | 69 |
return true; |
70 | 70 |
} |
71 | 71 |
|
Also available in: Unified diff
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.