aboutsummaryrefslogtreecommitdiffstats
path: root/src/jogl/classes/javax
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2014-09-09 20:02:45 +0200
committerSven Gothel <[email protected]>2014-09-09 20:02:45 +0200
commitd19bb03e3cabc9a50b63c4ce8d866efab7f34860 (patch)
tree1e4f43c69c2951afe6585fcfa63ebe1706327b9b /src/jogl/classes/javax
parent73a4d809f92126228b64a3bded75686db806be64 (diff)
GLPixelStorageModes: Emphasize reset*() usage; setUnpackRowLength: GL2ES2 -> GL2ES3; Better adoption of GLPixelStorageModes (GLJPanel, GLReadBufferUtil, TextureIO)
- Emphasize reset*() is being called when saving modes for 1st modification; - setUnpackRowLength: GL2ES2 -> GL2ES3; Actually GL2ES3 is required for UNPACK_ROW_LENGTH - Better adoption of GLPixelStorageModes (GLJPanel, GLReadBufferUtil, TextureIO)
Diffstat (limited to 'src/jogl/classes/javax')
-rw-r--r--src/jogl/classes/javax/media/opengl/awt/GLJPanel.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/jogl/classes/javax/media/opengl/awt/GLJPanel.java b/src/jogl/classes/javax/media/opengl/awt/GLJPanel.java
index cfb11a2b0..78310c654 100644
--- a/src/jogl/classes/javax/media/opengl/awt/GLJPanel.java
+++ b/src/jogl/classes/javax/media/opengl/awt/GLJPanel.java
@@ -1880,9 +1880,9 @@ public class GLJPanel extends JPanel implements AWTGLAutoDrawable, WindowClosing
// Save PACK modes, reset them to defaults and set alignment
psm.setPackAlignment(gl, alignment);
- if(gl.isGL2ES3()) {
+ if( gl.isGL2ES3() ) {
final GL2ES3 gl2es3 = gl.getGL2ES3();
- gl2es3.glPixelStorei(GL2ES3.GL_PACK_ROW_LENGTH, panelWidth);
+ psm.setPackRowLength(gl2es3, panelWidth);
gl2es3.glReadBuffer(gl2es3.getDefaultReadBuffer());
}