diff options
author | Andrei Karas <akaras@inbox.ru> | 2011-03-31 03:24:36 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2011-03-31 03:41:52 +0300 |
commit | 9b1ff248d5f261a947aeaea4f5c720040c266c8b (patch) | |
tree | c69b1092868f9d1be51f5439286f83ac04f86d50 | |
parent | 91a51ec64c35713914b22f2d9a283dc5b4091c12 (diff) | |
download | manaverse-9b1ff248d5f261a947aeaea4f5c720040c266c8b.tar.gz manaverse-9b1ff248d5f261a947aeaea4f5c720040c266c8b.tar.bz2 manaverse-9b1ff248d5f261a947aeaea4f5c720040c266c8b.tar.xz manaverse-9b1ff248d5f261a947aeaea4f5c720040c266c8b.zip |
Improve opengl perfomance.
-rw-r--r-- | src/openglgraphics.cpp | 6 |
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() |