From a72b8a15465e907411dc9339586c3a0e62086d21 Mon Sep 17 00:00:00 2001 From: norly Date: Thu, 27 Oct 2011 15:36:36 +0100 Subject: [PATCH] Fixed zNear, zFar values for gluPerspective. --- src/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.c b/src/main.c index 7825a2d..e79ae09 100644 --- a/src/main.c +++ b/src/main.c @@ -55,7 +55,7 @@ void on_reshape(int w, int h) // Set up the Projection transformation glMatrixMode(GL_PROJECTION); glLoadIdentity(); - gluPerspective(90, (GLfloat)w/(GLfloat)h, 0.0, 5.0); + gluPerspective(90, (GLfloat)w/(GLfloat)h, 0.0001, 1000.0); // Switch to Model/view transformation for drawing objects glMatrixMode(GL_MODELVIEW); -- 2.30.2