From 91c86f37d9b35b892873f642985c960d62f6ee68 Mon Sep 17 00:00:00 2001 From: sg215889 Date: Fri, 17 Jul 2009 13:32:31 -0700 Subject: Fix glPixelStorei pname check - Thx to Chris Campbell --- make/config/jogl/gl-gl2es12.cfg | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'make') diff --git a/make/config/jogl/gl-gl2es12.cfg b/make/config/jogl/gl-gl2es12.cfg index d304cdd69..c233ef4fd 100644 --- a/make/config/jogl/gl-gl2es12.cfg +++ b/make/config/jogl/gl-gl2es12.cfg @@ -48,8 +48,8 @@ Ignore glPixelStoref # Add input validation to glPixelStorei to make sure that, even if we # are running on top of desktop OpenGL, parameters not exposed in # OpenGL ES can not be changed -JavaPrologue glPixelStorei if (param != GL_PACK_ALIGNMENT && param != GL_UNPACK_ALIGNMENT) { -JavaPrologue glPixelStorei throw new GLException("Unsupported pixel store parameter 0x" + Integer.toHexString(param)); +JavaPrologue glPixelStorei if (pname != GL_PACK_ALIGNMENT && pname != GL_UNPACK_ALIGNMENT) { +JavaPrologue glPixelStorei throw new GLException("Unsupported pixel store parameter name 0x" + Integer.toHexString(param)); JavaPrologue glPixelStorei } CustomJavaCode GL2ES12Impl public void glFrustumf(float left, float right, float bottom, float top, float zNear, float zFar) { -- cgit v1.2.3