From 5550746772c2276196fa79507b8f7983ec549706 Mon Sep 17 00:00:00 2001 From: Ash Tyndall Date: Fri, 21 Oct 2011 08:16:46 +0800 Subject: [PATCH] --- scene.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scene.c b/scene.c index 4a5a686..8a209b9 100644 --- a/scene.c +++ b/scene.c @@ -188,10 +188,10 @@ void windowReshape(int w, int h) { glLoadIdentity(); if (w <= h) glFrustum(-1.0, 1.0, -1.0*(GLfloat) h / (GLfloat) w, - 1.0*(GLfloat) h / (GLfloat) w, 2.0, 10.0); + 1.0*(GLfloat) h / (GLfloat) w, nearClip, farClip); else glFrustum(-1.0*(GLfloat) w / (GLfloat) h, - 1.0*(GLfloat) w / (GLfloat) h, -1.0, 1.0, 2.0, 10.0); + 1.0*(GLfloat) w / (GLfloat) h, -1.0, 1.0, nearClip, farClip); glMatrixMode(GL_MODELVIEW); } -- 2.20.1