From: Ash Tyndall Date: Fri, 21 Oct 2011 00:50:34 +0000 (+0800) Subject: (no commit message) X-Git-Url: https://git.ucc.asn.au/?p=atyndall%2Fcits2231.git;a=commitdiff_plain;h=bb41d6092544e76540acf9700d2c14741a80ad6e --- diff --git a/scene.c b/scene.c index 3216d15..a21c299 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*((GLfloat) h / (GLfloat) w), - far*((GLfloat) h / (GLfloat) w), nearClip, farClip); + glFrustum(-near, far, -near, + far, nearClip, farClip); else glFrustum(-near*((GLfloat) w / (GLfloat) h), - far*((GLfloat) w / (GLfloat) h), near, far, nearClip, farClip); + far, near, far, nearClip, farClip); glMatrixMode(GL_MODELVIEW); }