From 69568f5b1a1c6d5ae02581ec37ec4e777c7367d5 Mon Sep 17 00:00:00 2001 From: Mark Vejvoda Date: Wed, 23 Jan 2013 21:53:02 +0000 Subject: [PATCH] - attempt to speed up color picking --- source/glest_game/graphics/renderer.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/glest_game/graphics/renderer.cpp b/source/glest_game/graphics/renderer.cpp index b3d8b92eb..269446e85 100644 --- a/source/glest_game/graphics/renderer.cpp +++ b/source/glest_game/graphics/renderer.cpp @@ -6925,7 +6925,7 @@ void Renderer::colorPickUnits(Selection::UnitContainer &units, // Added this to ensure all the selection calls are done now // (see http://www.unknownroad.com/rtfm/graphics/glselection.html section: [0x4]) - glFlush(); + //glFlush(); // uncomment this for debugging color picking to see what is colored //GraphicsInterface::getInstance().getCurrentContext()->swapBuffers(); @@ -6996,7 +6996,7 @@ void Renderer::colorPickObject(const Object *&obj, const Vec2i &posDown, // Added this to ensure all the selection calls are done now // (see http://www.unknownroad.com/rtfm/graphics/glselection.html section: [0x4]) - glFlush(); + //glFlush(); // uncomment this for debugging color picking to see what is colored //GraphicsInterface::getInstance().getCurrentContext()->swapBuffers();