From 37c0c88a7b96919470a0abed8e17b3a0352ca49d Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 17 Jan 2013 03:31:56 +0300 Subject: Add some flags to OpenGL initialization. --- src/normalopenglgraphics.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/normalopenglgraphics.cpp') diff --git a/src/normalopenglgraphics.cpp b/src/normalopenglgraphics.cpp index 837bb27db..534e9bffe 100644 --- a/src/normalopenglgraphics.cpp +++ b/src/normalopenglgraphics.cpp @@ -1049,12 +1049,21 @@ void NormalOpenGLGraphics::_beginDraw() 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); glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA); glEnableClientState(GL_VERTEX_ARRAY); glDisableClientState(GL_TEXTURE_COORD_ARRAY); + glShadeModel(GL_FLAT); + glDepthMask(GL_FALSE); + #ifndef ANDROID glHint(GL_LINE_SMOOTH_HINT, GL_FASTEST); glHint(GL_PERSPECTIVE_CORRECTION_HINT, GL_FASTEST); -- cgit v1.2.3-70-g09d2