diff options
-rw-r--r-- | src/test/com/jogamp/opengl/test/junit/jogl/demos/es2/RedSquareES2.java | 2 |
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; |