Skip to content

Commit 81e77a1

Browse files
committed
Add missing definition for GL_DEPTH_STENCIL_TEXTURE_MODE and GL_STENCIL_INDEX for iOS and Android
1 parent cda2b7c commit 81e77a1

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

Graphics/GraphicsEngineOpenGL/include/GLStubsAndroid.h

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,15 @@
155155
# define GL_MIRROR_CLAMP_TO_EDGE 0
156156
#endif
157157

158+
// Define unsupported texture parameters
159+
#ifndef GL_DEPTH_STENCIL_TEXTURE_MODE
160+
# define GL_DEPTH_STENCIL_TEXTURE_MODE 0x90EA
161+
#endif
162+
163+
#ifndef GL_STENCIL_INDEX
164+
# define GL_STENCIL_INDEX 0x1901
165+
#endif
166+
158167
// Define unsupported bind points
159168
#ifndef GL_ARB_draw_indirect
160169
# define GL_ARB_draw_indirect 1

Graphics/GraphicsEngineOpenGL/include/GLStubsIOS.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,14 @@
170170
# define GL_DEPTH_CLAMP 0x864F
171171
#endif
172172

173+
// Define unsupported texture parameters
174+
#ifndef GL_DEPTH_STENCIL_TEXTURE_MODE
175+
# define GL_DEPTH_STENCIL_TEXTURE_MODE 0x90EA
176+
#endif
177+
178+
#ifndef GL_STENCIL_INDEX
179+
# define GL_STENCIL_INDEX 0x1901
180+
#endif
173181

174182
// Define unsupported formats for OpenGL ES
175183
#ifndef GL_RGBA16

0 commit comments

Comments
 (0)