From bdb4a25b0145f6819c508315e893de115f179829 Mon Sep 17 00:00:00 2001 From: Alexander Sulfrian Date: Mon, 9 Apr 2012 18:13:40 +0200 Subject: menu/application: group the opengl init steps --- src/menu/application.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/menu/application.cpp b/src/menu/application.cpp index cd234250..86bb9232 100644 --- a/src/menu/application.cpp +++ b/src/menu/application.cpp @@ -139,12 +139,9 @@ namespace usdx 24, SDL_OPENGL); - glEnable(GL_TEXTURE_2D); - - glClearColor(0.0f, 0.0f, 0.0f, 0.0f); - glViewport(0, 0, get_width(), get_height()); + glClearColor(0.0f, 0.0f, 0.0f, 0.0f); glClear(GL_COLOR_BUFFER_BIT); glMatrixMode(GL_PROJECTION); @@ -154,6 +151,8 @@ namespace usdx glMatrixMode(GL_MODELVIEW); glLoadIdentity(); + + glEnable(GL_TEXTURE_2D); glDisable(GL_DEPTH_TEST); } -- cgit v1.2.3