summaryrefslogtreecommitdiff
path: root/src/safeopenglgraphics.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-01-17 03:31:56 +0300
committerAndrei Karas <akaras@inbox.ru>2013-01-17 14:42:20 +0300
commit37c0c88a7b96919470a0abed8e17b3a0352ca49d (patch)
treea4d245813a947e413b22f98459987a0b35398931 /src/safeopenglgraphics.cpp
parent001f897d939e5541868d0acefd4d5f9b2bed7271 (diff)
downloadManaVerse-37c0c88a7b96919470a0abed8e17b3a0352ca49d.tar.gz
ManaVerse-37c0c88a7b96919470a0abed8e17b3a0352ca49d.tar.bz2
ManaVerse-37c0c88a7b96919470a0abed8e17b3a0352ca49d.tar.xz
ManaVerse-37c0c88a7b96919470a0abed8e17b3a0352ca49d.zip
Add some flags to OpenGL initialization.
Diffstat (limited to 'src/safeopenglgraphics.cpp')
-rw-r--r--src/safeopenglgraphics.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/safeopenglgraphics.cpp b/src/safeopenglgraphics.cpp
index 5b4a0cc87..5802691ec 100644
--- a/src/safeopenglgraphics.cpp
+++ b/src/safeopenglgraphics.cpp
@@ -374,6 +374,15 @@ void SafeOpenGLGraphics::_beginDraw()
glLoadIdentity();
glEnable(GL_SCISSOR_TEST);
+ glDisable(GL_DITHER);
+ glDisable(GL_LIGHTING);
+ glDisable(GL_DEPTH_TEST);
+ glDisable(GL_FOG);
+ glDisable(GL_COLOR_LOGIC_OP);
+ glDisable(GL_COLOR_MATERIAL);
+ glDisable(GL_STENCIL_TEST);
+
+ glShadeModel(GL_FLAT);
glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);