Fixed zNear, zFar values for gluPerspective.
[grGL.git] / src / main.c
index 7825a2dca9d796dbb15712fbd664bbc372a6f990..e79ae09266192d8a624d89431eb4da1bc8a290ff 100644 (file)
@@ -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);