From 028c7dcfa9f1920d5fa2e573790bef40c4076275 Mon Sep 17 00:00:00 2001 From: pixel Date: Mon, 11 Nov 2002 20:07:41 +0000 Subject: Still working ;-) --- mogltk/glbase.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'mogltk/glbase.cpp') diff --git a/mogltk/glbase.cpp b/mogltk/glbase.cpp index b2512ca..0993b43 100644 --- a/mogltk/glbase.cpp +++ b/mogltk/glbase.cpp @@ -59,6 +59,9 @@ int mogltk::glbase::setup(int w, int h, int flags) throw(GeneralException) { glMatrixMode(GL_MODELVIEW); glLoadIdentity(); + glEnable(GL_TEXTURE_2D); + glTexEnvf(GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, GL_DECAL); + return 0; } @@ -81,7 +84,6 @@ void mogltk::glbase::Enter2DMode(void) { glPushAttrib(GL_ENABLE_BIT); glDisable(GL_DEPTH_TEST); glDisable(GL_CULL_FACE); - glEnable(GL_TEXTURE_2D); glEnable(GL_BLEND); glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA); @@ -94,8 +96,6 @@ void mogltk::glbase::Enter2DMode(void) { glPushMatrix(); glLoadIdentity(); - glTexEnvf(GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, GL_DECAL); - twoD = 1; } -- cgit v1.2.3