aboutsummaryrefslogtreecommitdiffstats
path: root/src/menu/application.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/menu/application.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/menu/application.cpp b/src/menu/application.cpp
index b8392802..6bad5324 100644
--- a/src/menu/application.cpp
+++ b/src/menu/application.cpp
@@ -166,14 +166,17 @@ namespace usdx
// called from the thread owning the OpenGL contect
gl_thread = boost::this_thread::get_id();
+ // set-up the opengl projection matrix
glMatrixMode(GL_PROJECTION);
glLoadIdentity();
-
glOrtho(0.0f, get_width(), get_height(), 0.0f, -1.0f, 1.0f);
+ // reset the modelview matrix
glMatrixMode(GL_MODELVIEW);
glLoadIdentity();
+ // the depth layer is not used, so disable the depth test for
+ // higher performance
glDisable(GL_DEPTH_TEST);
}