Skip to content

Commit c2bbe93

Browse files
committed
dont' use deprecated GLES20.GL_STENCIL_INDEX constant
1 parent a93a62d commit c2bbe93

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/src/processing/opengl/PGLES.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -978,7 +978,7 @@ protected FontOutline createFontOutline(char ch, Object font) {
978978
DEPTH_COMPONENT24 = 0x81A6;
979979
DEPTH_COMPONENT32 = 0x81A7;
980980

981-
STENCIL_INDEX = GLES20.GL_STENCIL_INDEX;
981+
STENCIL_INDEX = 6401; // GLES20.GL_STENCIL_INDEX is marked as deprecated
982982
STENCIL_INDEX1 = 0x8D46;
983983
STENCIL_INDEX4 = 0x8D47;
984984
STENCIL_INDEX8 = GLES20.GL_STENCIL_INDEX8;

0 commit comments

Comments
 (0)