From 02a8a651d1897a11d266dcd93d27b7f1d4c03a84 Mon Sep 17 00:00:00 2001 From: Ash Tyndall Date: Fri, 21 Oct 2011 08:20:05 +0800 Subject: [PATCH] --- scene.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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); } -- 2.20.1