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