From: Ash Tyndall Date: Fri, 21 Oct 2011 00:16:46 +0000 (+0800) Subject: (no commit message) X-Git-Url: https://git.ucc.asn.au/?p=atyndall%2Fcits2231.git;a=commitdiff_plain;h=5550746772c2276196fa79507b8f7983ec549706 --- diff --git a/scene.c b/scene.c index 4a5a686..8a209b9 100644 --- a/scene.c +++ b/scene.c @@ -188,10 +188,10 @@ void windowReshape(int w, int h) { glLoadIdentity(); if (w <= h) glFrustum(-1.0, 1.0, -1.0*(GLfloat) h / (GLfloat) w, - 1.0*(GLfloat) h / (GLfloat) w, 2.0, 10.0); + 1.0*(GLfloat) h / (GLfloat) w, nearClip, farClip); else glFrustum(-1.0*(GLfloat) w / (GLfloat) h, - 1.0*(GLfloat) w / (GLfloat) h, -1.0, 1.0, 2.0, 10.0); + 1.0*(GLfloat) w / (GLfloat) h, -1.0, 1.0, nearClip, farClip); glMatrixMode(GL_MODELVIEW); }