(no commit message)
authorAsh Tyndall <[email protected]>
Sun, 9 Oct 2011 06:48:15 +0000 (14:48 +0800)
committerAsh Tyndall <[email protected]>
Sun, 9 Oct 2011 06:48:15 +0000 (14:48 +0800)
scene.c

diff --git a/scene.c b/scene.c
index 457e23d..b85ed9f 100644 (file)
--- a/scene.c
+++ b/scene.c
@@ -469,7 +469,7 @@ void windowReshape(int w, int h) {
   glLoadIdentity();                          // Reset The Projection Matrix\r
 \r
   // Calculate The Aspect Ratio Of The Window\r
-  gluPerspective(45.0f,(GLfloat)w/(GLfloat)h,0.1f,100.0f);\r
+  gluPerspective(45.0f,45.0f,0.1f,100.0f);\r
 \r
   glMatrixMode(GL_MODELVIEW);                // Select The Modelview Matrix\r
   glLoadIdentity();                          // Reset The Modelview Matrix\r

UCC git Repository :: git.ucc.asn.au