(no commit message)
authorAsh Tyndall <[email protected]>
Thu, 20 Oct 2011 03:30:48 +0000 (11:30 +0800)
committerAsh Tyndall <[email protected]>
Thu, 20 Oct 2011 03:30:48 +0000 (11:30 +0800)
scene.c

diff --git a/scene.c b/scene.c
index 3f6922a..95c19c5 100644 (file)
--- a/scene.c
+++ b/scene.c
@@ -187,10 +187,10 @@ void windowReshape(int w, int h) {
   glMatrixMode(GL_PROJECTION);\r
   glLoadIdentity();\r
   if (w <= h) \r
-    glFrustum(near, far, near*(GLfloat)h/(GLfloat)w,\r
+    glOrtho(near, far, near*(GLfloat)h/(GLfloat)w,\r
              far*(GLfloat)h/(GLfloat)w, -100, 100);\r
   else\r
-    glFrustum(near*(GLfloat)w/(GLfloat)h,\r
+    glOrtho(near*(GLfloat)w/(GLfloat)h,\r
              far*(GLfloat)w/(GLfloat)h, near, far, nearClip, farClip);\r
    glMatrixMode(GL_MODELVIEW); \r
    glLoadIdentity();\r

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