From ee55eca6d8b23bd7cf6e536391c7e04719b2b8f8 Mon Sep 17 00:00:00 2001 From: Ash Tyndall Date: Fri, 21 Oct 2011 08:52:35 +0800 Subject: [PATCH] --- scene.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scene.c b/scene.c index a09011c..bf5b7e8 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, - far, 1, 100); + glFrustum(-1, 100, -1, + 100, -1, 100); else - glFrustum(-near*((GLfloat) w / (GLfloat) h), - far, near, far, 1, 100); + glFrustum(-1, + 100, -1, 100, -1, 100); glMatrixMode(GL_MODELVIEW); } -- 2.20.1