From 9637a708a7d2508bc2cfc2a107265555efa2fbc7 Mon Sep 17 00:00:00 2001 From: Mark Vejvoda Date: Mon, 28 Jun 2010 00:25:12 +0000 Subject: [PATCH] - small code rollback to see if it really affects render performance? --- source/glest_game/graphics/renderer.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/source/glest_game/graphics/renderer.cpp b/source/glest_game/graphics/renderer.cpp index fcbfd0271..ff73541c9 100644 --- a/source/glest_game/graphics/renderer.cpp +++ b/source/glest_game/graphics/renderer.cpp @@ -458,7 +458,10 @@ void Renderer::renderParticleManager(ResourceScope rs){ } void Renderer::swapBuffers(){ + //glFlush(); // should not be required - http://www.opengl.org/wiki/Common_Mistakes + glFlush(); // <--- this might actually be needed for better Render performance??? + GraphicsInterface::getInstance().getCurrentContext()->swapBuffers(); }