diff options
author | Sven Gothel <[email protected]> | 2013-06-17 13:16:40 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2013-06-17 13:16:40 +0200 |
commit | d846b04928ecfcfb319e75d7ed114d357edbeb89 (patch) | |
tree | 098e822c4284c06f12d2272f2a9f0ca12592497e /src/test | |
parent | f2182cfbf4cf77ba3f53b5b3e1c53e9dd42691a5 (diff) |
Fix Bug 735: GLAutoDrawable must issue glViewport(..) even w/o GLEventListener ; Optimize GLDrawableHelper's glViewportCall(..)
GLAutoDrawable must issue glViewport(..) even w/o GLEventListener
- Same behavior w/ or w/o GLEventListener requires to issue glViewport, always.
Optimize GLDrawableHelper's glViewportCall(..)
- 'private void init(..)' receives 'setViewport' argument to be passed to 'private void reshape(..)'
allowing to only the the viewport once @ 'public void init(..)' and display.
Diffstat (limited to 'src/test')
-rw-r--r-- | src/test/com/jogamp/opengl/test/bugs/Bug735Inv0AppletAWT.java | 2 | ||||
-rw-r--r-- | src/test/com/jogamp/opengl/test/bugs/Bug735Inv1AppletAWT.java | 4 |
2 files changed, 1 insertions, 5 deletions
diff --git a/src/test/com/jogamp/opengl/test/bugs/Bug735Inv0AppletAWT.java b/src/test/com/jogamp/opengl/test/bugs/Bug735Inv0AppletAWT.java index 1f98964c6..f443459c3 100644 --- a/src/test/com/jogamp/opengl/test/bugs/Bug735Inv0AppletAWT.java +++ b/src/test/com/jogamp/opengl/test/bugs/Bug735Inv0AppletAWT.java @@ -309,8 +309,6 @@ public class Bug735Inv0AppletAWT extends Applet implements Runnable { // Disables vsync gl.setSwapInterval(0); } - gl.glViewport(0, 0, width, height); - glu = new GLU(); vertShader = ShaderCode.create(gl, GL2ES2.GL_VERTEX_SHADER, LandscapeES2.class, "shader", "shader/bin", "landscape", true); diff --git a/src/test/com/jogamp/opengl/test/bugs/Bug735Inv1AppletAWT.java b/src/test/com/jogamp/opengl/test/bugs/Bug735Inv1AppletAWT.java index 2b277dba0..e8cef5e16 100644 --- a/src/test/com/jogamp/opengl/test/bugs/Bug735Inv1AppletAWT.java +++ b/src/test/com/jogamp/opengl/test/bugs/Bug735Inv1AppletAWT.java @@ -307,9 +307,7 @@ public class Bug735Inv1AppletAWT extends Applet implements Runnable { if (60 < TARGET_FPS) { // Disables vsync gl.setSwapInterval(0); - } - gl.glViewport(0, 0, width, height); - + } glu = new GLU(); vertShader = ShaderCode.create(gl, GL2ES2.GL_VERTEX_SHADER, LandscapeES2.class, "shader", "shader/bin", "landscape", true); |