summaryrefslogtreecommitdiff
path: root/src/render/safeopenglgraphics.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/render/safeopenglgraphics.cpp')
-rw-r--r--src/render/safeopenglgraphics.cpp8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/render/safeopenglgraphics.cpp b/src/render/safeopenglgraphics.cpp
index c67b84377..1f381b2b9 100644
--- a/src/render/safeopenglgraphics.cpp
+++ b/src/render/safeopenglgraphics.cpp
@@ -492,19 +492,13 @@ void SafeOpenGLGraphics::beginDraw()
glMatrixMode(GL_MODELVIEW);
glLoadIdentity();
- glEnable(GL_SCISSOR_TEST);
- glDisable(GL_DITHER);
+ setOpenGLFlags();
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);
-
pushClipArea(Rect(0, 0, mRect.w, mRect.h));
}