diff options
Diffstat (limited to 'make/config/jogl/gl-es2.cfg')
-rwxr-xr-x | make/config/jogl/gl-es2.cfg | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/make/config/jogl/gl-es2.cfg b/make/config/jogl/gl-es2.cfg index 6a81c9376..f78001dee 100755 --- a/make/config/jogl/gl-es2.cfg +++ b/make/config/jogl/gl-es2.cfg @@ -44,6 +44,18 @@ LocalProcAddressCallingConvention __ALL__ GL_APIENTRY # Pick up on-line OpenGL javadoc thanks to user cylab on javagaming.org forums TagNativeBinding true +# Add PixelStorei StateTracker +# +# Add input validation to glPixelStorei, just to be sure. +CustomJavaCode GLES2Impl private static final int params_offset = 0; // just a helper for JavaPrologue .. + +JavaPrologue glPixelStorei if (pname != GL_PACK_ALIGNMENT && pname != GL_UNPACK_ALIGNMENT) { +JavaPrologue glPixelStorei throw new GLException("Unsupported pixel store parameter name 0x" + Integer.toHexString(pname)); +JavaPrologue glPixelStorei } +JavaPrologue glPixelStorei glStateTracker.setInt(pname, param); + +JavaPrologue glGetIntegerv if ( glStateTracker.getInt(pname, params, params_offset) ) { return; } + IncludeAs CustomJavaCode GLES2 gl-if-CustomJavaCode-gles2.java CustomCCode /* Define GL_GLEXT_PROTOTYPES so that the OpenGL extension prototypes in |