fix near and far value in glOrtho()
This commit is contained in:
1 parent
4a7a97236b
commit
097feecbb7
1 file changed
+1
-1
+1
-1
@@ -133,7 +133,7 @@ bool init(int width, int height)
|
||||
glMatrixMode(GL_PROJECTION);
|
||||
glLoadIdentity();
|
||||
glOrtho((float)-width/(float)height, (float)width/(float)height,
|
||||
-1, 1, -1000, 1);
|
||||
-1, 1, 1000, -1000);
|
||||
glMatrixMode(GL_MODELVIEW);
|
||||
glLoadIdentity();
|
||||
|
||||
|
||||
Reference in new issue
Block a user