diff options
author | Sven Gothel <[email protected]> | 2014-05-26 19:18:43 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2014-05-26 19:18:43 +0200 |
commit | fc1e98790a02b4fa7922f3cdd9d437f87d7c99e5 (patch) | |
tree | c45b50fcb963b44013887214b6adbd83e2d2ba48 /src/jogl/classes/com/jogamp/opengl/util/GLReadBufferUtil.java | |
parent | 93bbc064a1a4cf80079f28e48a5deb50de4a9e66 (diff) |
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
Diffstat (limited to 'src/jogl/classes/com/jogamp/opengl/util/GLReadBufferUtil.java')
-rw-r--r-- | src/jogl/classes/com/jogamp/opengl/util/GLReadBufferUtil.java | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/jogl/classes/com/jogamp/opengl/util/GLReadBufferUtil.java b/src/jogl/classes/com/jogamp/opengl/util/GLReadBufferUtil.java index 2b4795aaa..680984cdb 100644 --- a/src/jogl/classes/com/jogamp/opengl/util/GLReadBufferUtil.java +++ b/src/jogl/classes/com/jogamp/opengl/util/GLReadBufferUtil.java @@ -33,7 +33,6 @@ import java.io.IOException; import javax.media.opengl.GL; import javax.media.opengl.GL2ES3; -import javax.media.opengl.GL2GL3; import javax.media.opengl.GLAutoDrawable; import javax.media.opengl.GLDrawable; import javax.media.opengl.GLException; @@ -221,7 +220,7 @@ public class GLReadBufferUtil { } boolean res = null!=readPixelBuffer && readPixelBuffer.isValid(); if(res) { - psm.setAlignment(gl, alignment, alignment); + psm.setPackAlignment(gl, alignment); if(gl.isGL2ES3()) { final GL2ES3 gl2es3 = gl.getGL2ES3(); gl2es3.glPixelStorei(GL2ES3.GL_PACK_ROW_LENGTH, width); |