diff options
author | Sven Gothel <[email protected]> | 2012-09-29 03:02:09 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2012-09-29 03:02:09 +0200 |
commit | 4f8432b0a5ac2a030056884c8f6c877435aaf5c8 (patch) | |
tree | f1b3ad8f1f1e9011b642bc7ac36fee92b433bc16 /src/jogl/classes/javax/media/opengl/awt | |
parent | 27fe889023c7366e264647e5dc25053f22df0956 (diff) |
GLDrawableHelper.init(..): Avoid double reshape if subsequent display issues reshape
Adding boolean sendReshape argument to be set to false, if subsequent display won't reshape.
Diffstat (limited to 'src/jogl/classes/javax/media/opengl/awt')
-rw-r--r-- | src/jogl/classes/javax/media/opengl/awt/GLCanvas.java | 2 | ||||
-rw-r--r-- | src/jogl/classes/javax/media/opengl/awt/GLJPanel.java | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/jogl/classes/javax/media/opengl/awt/GLCanvas.java b/src/jogl/classes/javax/media/opengl/awt/GLCanvas.java index 329cf9e3f..335322be9 100644 --- a/src/jogl/classes/javax/media/opengl/awt/GLCanvas.java +++ b/src/jogl/classes/javax/media/opengl/awt/GLCanvas.java @@ -947,7 +947,7 @@ public class GLCanvas extends Canvas implements AWTGLAutoDrawable, WindowClosing private final Runnable initAction = new Runnable() { @Override public void run() { - helper.init(GLCanvas.this); + helper.init(GLCanvas.this, !sendReshape); } }; diff --git a/src/jogl/classes/javax/media/opengl/awt/GLJPanel.java b/src/jogl/classes/javax/media/opengl/awt/GLJPanel.java index 6d4a5861f..d0b9fb913 100644 --- a/src/jogl/classes/javax/media/opengl/awt/GLJPanel.java +++ b/src/jogl/classes/javax/media/opengl/awt/GLJPanel.java @@ -679,7 +679,7 @@ public class GLJPanel extends JPanel implements AWTGLAutoDrawable, WindowClosing if (!backend.preGL(g)) { return; } - helper.init(GLJPanel.this); + helper.init(GLJPanel.this, !sendReshape); backend.postGL(g, false); } |