From 9b1ff248d5f261a947aeaea4f5c720040c266c8b Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 31 Mar 2011 03:24:36 +0300 Subject: Improve opengl perfomance. --- src/openglgraphics.cpp | 6 ++++-- 1 file 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() -- cgit v1.2.3-70-g09d2