projects
/
grGL.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d8ae939
)
Fixed zNear, zFar values for gluPerspective.
author
norly
<ny-git@enpas.org>
Thu, 27 Oct 2011 14:36:36 +0000
(15:36 +0100)
committer
norly
<ny-git@enpas.org>
Thu, 27 Oct 2011 14:36:36 +0000
(15:36 +0100)
src/main.c
patch
|
blob
|
history
diff --git
a/src/main.c
b/src/main.c
index 7825a2dca9d796dbb15712fbd664bbc372a6f990..e79ae09266192d8a624d89431eb4da1bc8a290ff 100644
(file)
--- 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.0
001, 1000
.0);
// Switch to Model/view transformation for drawing objects
glMatrixMode(GL_MODELVIEW);