summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-03-31 03:24:36 +0300
committerAndrei Karas <akaras@inbox.ru>2011-03-31 03:41:52 +0300
commit9b1ff248d5f261a947aeaea4f5c720040c266c8b (patch)
treec69b1092868f9d1be51f5439286f83ac04f86d50
parent91a51ec64c35713914b22f2d9a283dc5b4091c12 (diff)
downloadManaVerse-9b1ff248d5f261a947aeaea4f5c720040c266c8b.tar.gz
ManaVerse-9b1ff248d5f261a947aeaea4f5c720040c266c8b.tar.bz2
ManaVerse-9b1ff248d5f261a947aeaea4f5c720040c266c8b.tar.xz
ManaVerse-9b1ff248d5f261a947aeaea4f5c720040c266c8b.zip
Improve opengl perfomance.
-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()