aboutsummaryrefslogtreecommitdiffstats
path: root/src/test
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2013-06-17 06:19:57 +0200
committerSven Gothel <[email protected]>2013-06-17 06:19:57 +0200
commit24b63b18e6ca3f657350d6c80e4914eadce60164 (patch)
tree42ef4726a8b0480129f3ea9a774feb99fb12cbe5 /src/test
parent809201c2806485fb6cd0195d43ccf43c343d591e (diff)
Solve Bug 735 Mystery: glViewport(..) was missing - duh :)
Diffstat (limited to 'src/test')
-rw-r--r--src/test/com/jogamp/opengl/test/bugs/Bug735Inv0AppletAWT.java2
-rw-r--r--src/test/com/jogamp/opengl/test/bugs/Bug735Inv1AppletAWT.java2
2 files changed, 4 insertions, 0 deletions
diff --git a/src/test/com/jogamp/opengl/test/bugs/Bug735Inv0AppletAWT.java b/src/test/com/jogamp/opengl/test/bugs/Bug735Inv0AppletAWT.java
index 58ba03638..4cf342c0e 100644
--- a/src/test/com/jogamp/opengl/test/bugs/Bug735Inv0AppletAWT.java
+++ b/src/test/com/jogamp/opengl/test/bugs/Bug735Inv0AppletAWT.java
@@ -308,6 +308,8 @@ 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 8c8dd77da..a03afba7a 100644
--- a/src/test/com/jogamp/opengl/test/bugs/Bug735Inv1AppletAWT.java
+++ b/src/test/com/jogamp/opengl/test/bugs/Bug735Inv1AppletAWT.java
@@ -307,6 +307,8 @@ public class Bug735Inv1AppletAWT 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);