From bb41d6092544e76540acf9700d2c14741a80ad6e Mon Sep 17 00:00:00 2001 From: Ash Tyndall Date: Fri, 21 Oct 2011 08:50:34 +0800 Subject: [PATCH] --- scene.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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); } -- 2.20.1