From 097feecbb7d3be9d4ea4cf32f5dc774c57e508c1 Mon Sep 17 00:00:00 2001 From: Josh Holtrop Date: Sat, 30 Apr 2011 11:25:17 -0400 Subject: [PATCH] fix near and far value in glOrtho() --- template/test.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/template/test.cc b/template/test.cc index 90d2c45..08d934f 100644 --- a/template/test.cc +++ b/template/test.cc @@ -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();