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