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