From 8d212bec7f6968a3d7e7af6bbbe9c394820f2a65 Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Wed, 11 Sep 2013 10:25:43 +0200 Subject: RedSquareES2: Fix tiled aspect ratio --- src/test/com/jogamp/opengl/test/junit/jogl/demos/es2/RedSquareES2.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/test/com/jogamp') 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; -- cgit v1.2.3