Fixed zNear, zFar values for gluPerspective.
authornorly <ny-git@enpas.org>
Thu, 27 Oct 2011 14:36:36 +0000 (15:36 +0100)
committernorly <ny-git@enpas.org>
Thu, 27 Oct 2011 14:36:36 +0000 (15:36 +0100)
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);