From: Ash Tyndall Date: Thu, 20 Oct 2011 11:56:01 +0000 (+0800) Subject: (no commit message) X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=5157d8d5fc2604ea53efb5d02c8cd3f5d9a5669f;p=atyndall%2Fcits2231.git --- diff --git a/scene.c b/scene.c index 1cc9122..a866479 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();