From: Ash Tyndall Date: Fri, 21 Oct 2011 00:52:35 +0000 (+0800) Subject: (no commit message) X-Git-Url: https://git.ucc.asn.au/?p=atyndall%2Fcits2231.git;a=commitdiff_plain;h=ee55eca6d8b23bd7cf6e536391c7e04719b2b8f8 --- diff --git a/scene.c b/scene.c index a09011c..bf5b7e8 100644 --- a/scene.c +++ b/scene.c @@ -187,11 +187,11 @@ void windowReshape(int w, int h) { glMatrixMode(GL_PROJECTION); glLoadIdentity(); if (w <= h) - glFrustum(-near, far, -near, - far, 1, 100); + glFrustum(-1, 100, -1, + 100, -1, 100); else - glFrustum(-near*((GLfloat) w / (GLfloat) h), - far, near, far, 1, 100); + glFrustum(-1, + 100, -1, 100, -1, 100); glMatrixMode(GL_MODELVIEW); }