summaryrefslogtreecommitdiff
path: root/src/openglgraphics.cpp
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 /src/openglgraphics.cpp
parent91a51ec64c35713914b22f2d9a283dc5b4091c12 (diff)
downloadmanaplus-9b1ff248d5f261a947aeaea4f5c720040c266c8b.tar.gz
manaplus-9b1ff248d5f261a947aeaea4f5c720040c266c8b.tar.bz2
manaplus-9b1ff248d5f261a947aeaea4f5c720040c266c8b.tar.xz
manaplus-9b1ff248d5f261a947aeaea4f5c720040c266c8b.zip
Improve opengl perfomance.
Diffstat (limited to 'src/openglgraphics.cpp')
-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()