summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/openglgraphics.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/openglgraphics.cpp b/src/openglgraphics.cpp
index f30d20666..aa3dc6667 100644
--- a/src/openglgraphics.cpp
+++ b/src/openglgraphics.cpp
@@ -811,9 +811,11 @@ void OpenGLGraphics::calcImagePattern(GraphicsVertexes* vert, Image *image,
void OpenGLGraphics::updateScreen()
{
- glFlush();
- glFinish();
+// glFlush();
+// glFinish();
SDL_GL_SwapBuffers();
+// may be need clear?
+// glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT | GL_STENCIL_BUFFER_BIT);
}
void OpenGLGraphics::_beginDraw()