summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornorly <ny-git@enpas.org>2011-10-27 15:36:36 +0100
committernorly <ny-git@enpas.org>2011-10-27 15:36:36 +0100
commita72b8a15465e907411dc9339586c3a0e62086d21 (patch)
tree5eba25d9b604496ca20705f3a95ee37e0decb753
parentd8ae939a8d19ef9a8683687fd1a25232717b32f7 (diff)
Fixed zNear, zFar values for gluPerspective.
-rw-r--r--src/main.c2
1 files changed, 1 insertions, 1 deletions
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);