aboutsummaryrefslogtreecommitdiffstats
path: root/src/test
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2013-09-11 10:25:43 +0200
committerSven Gothel <[email protected]>2013-09-11 10:25:43 +0200
commit8d212bec7f6968a3d7e7af6bbbe9c394820f2a65 (patch)
tree03b51b883018e7589767124f20b0f6bc9393669e /src/test
parent569c538b439275222ed40c249f4ecd7516c2945b (diff)
RedSquareES2: Fix tiled aspect ratio
Diffstat (limited to 'src/test')
-rw-r--r--src/test/com/jogamp/opengl/test/junit/jogl/demos/es2/RedSquareES2.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/com/jogamp/opengl/test/junit/jogl/demos/es2/RedSquareES2.java b/src/test/com/jogamp/opengl/test/junit/jogl/demos/es2/RedSquareES2.java
index 5315fe406..278d61fe7 100644
--- a/src/test/com/jogamp/opengl/test/junit/jogl/demos/es2/RedSquareES2.java
+++ b/src/test/com/jogamp/opengl/test/junit/jogl/demos/es2/RedSquareES2.java
@@ -207,7 +207,7 @@ public class RedSquareES2 implements GLEventListener, TileRendererBase.TileRende
}
// compute projection parameters 'normal' perspective
final float fovy=45f;
- final float aspect2 = ( (float) width / (float) height ) / aspect;
+ final float aspect2 = ( (float) imageWidth / (float) imageHeight ) / aspect;
final float zNear=1f;
final float zFar=100f;