diff options
| -rw-r--r-- | opengl/tools/glgen/stubs/gles11/common.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/opengl/tools/glgen/stubs/gles11/common.cpp b/opengl/tools/glgen/stubs/gles11/common.cpp index 18ec5e3e7e..7062c5751f 100644 --- a/opengl/tools/glgen/stubs/gles11/common.cpp +++ b/opengl/tools/glgen/stubs/gles11/common.cpp @@ -246,6 +246,19 @@ getDirectBufferPointer(JNIEnv *_env, jobject buffer) { */ static int getNeededCount(GLint pname) { int needed = 1; +#ifdef GL_ES_VERSION_3_0 + // GLES 3.x pnames + switch (pname) { + case GL_MAX_VIEWPORT_DIMS: + needed = 2; + break; + + case GL_PROGRAM_BINARY_FORMATS: + glGetIntegerv(GL_NUM_PROGRAM_BINARY_FORMATS, &needed); + break; + } +#endif + #ifdef GL_ES_VERSION_2_0 // GLES 2.x pnames switch (pname) { |