From: Ash Tyndall Date: Thu, 20 Oct 2011 03:30:06 +0000 (+0800) Subject: (no commit message) X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=d99aa9a1345c297f95c1640e80d5b7529aae6923;p=atyndall%2Fcits2231.git --- diff --git a/scene.c b/scene.c index 95c19c5..3f6922a 100644 --- a/scene.c +++ b/scene.c @@ -187,10 +187,10 @@ void windowReshape(int w, int h) { glMatrixMode(GL_PROJECTION); glLoadIdentity(); if (w <= h) - glOrtho(near, far, near*(GLfloat)h/(GLfloat)w, + glFrustum(near, far, near*(GLfloat)h/(GLfloat)w, far*(GLfloat)h/(GLfloat)w, -100, 100); else - glOrtho(near*(GLfloat)w/(GLfloat)h, + glFrustum(near*(GLfloat)w/(GLfloat)h, far*(GLfloat)w/(GLfloat)h, near, far, nearClip, farClip); glMatrixMode(GL_MODELVIEW); glLoadIdentity();