summaryrefslogtreecommitdiff
path: root/src/render/mobileopenglgraphics.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/render/mobileopenglgraphics.cpp')
-rw-r--r--src/render/mobileopenglgraphics.cpp13
1 files changed, 1 insertions, 12 deletions
diff --git a/src/render/mobileopenglgraphics.cpp b/src/render/mobileopenglgraphics.cpp
index a38a291be..b0e78c534 100644
--- a/src/render/mobileopenglgraphics.cpp
+++ b/src/render/mobileopenglgraphics.cpp
@@ -886,19 +886,13 @@ void MobileOpenGLGraphics::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);
-
glEnableClientState(GL_VERTEX_ARRAY);
glDisableClientState(GL_TEXTURE_COORD_ARRAY);
@@ -907,13 +901,8 @@ void MobileOpenGLGraphics::beginDraw()
glHint(GL_PERSPECTIVE_CORRECTION_HINT, GL_FASTEST);
glHint(GL_POINT_SMOOTH_HINT, GL_FASTEST);
glHint(GL_POLYGON_SMOOTH_HINT, GL_FASTEST);
-#ifndef __MINGW32__
- glHint(GL_TEXTURE_COMPRESSION_HINT, GL_FASTEST);
-#endif
#endif
-// glScalef(0.5F, 0.5F, 0.5F);
-
pushClipArea(Rect(0, 0, mRect.w, mRect.h));
}