From fc1e98790a02b4fa7922f3cdd9d437f87d7c99e5 Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Mon, 26 May 2014 19:18:43 +0200 Subject: Bug 1010 - Fix ES3.glPixelStorei and revalidate GLPixelStorageModes Remove GLES3Impl.glPixelStorei pname validation which was true for ES2 impl, but is no more valid for ES3, which accepts more values than GL_PACK_ALIGNMENT & GL_UNPACK_ALIGNMENT. Revalidate GLPixelStorageModes: - Properly support ES3 PixelStorageModes - Revalidate PixelStorageModes for all GL profiles - Properly reset values at save - Separate PACK and UNPACK save/reset/restore implementation --- make/config/jogl/gl-es3-impl.cfg | 4 ---- 1 file changed, 4 deletions(-) (limited to 'make/config/jogl') diff --git a/make/config/jogl/gl-es3-impl.cfg b/make/config/jogl/gl-es3-impl.cfg index 2e5e36e9c..9682e49af 100644 --- a/make/config/jogl/gl-es3-impl.cfg +++ b/make/config/jogl/gl-es3-impl.cfg @@ -48,12 +48,8 @@ TagNativeBinding true # Add PixelStorei StateTracker # -# Add input validation to glPixelStorei, just to be sure. CustomJavaCode GLES3Impl 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; } -- cgit v1.2.3