From 1a8673feb362f6094bf114ffad45609ec847346b Mon Sep 17 00:00:00 2001 From: SoftCoder Date: Thu, 28 Nov 2013 22:58:13 -0800 Subject: [PATCH] - bugfix for will's color pick optimization (was not properly doing cell selection) --- source/shared_lib/sources/graphics/model.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/source/shared_lib/sources/graphics/model.cpp b/source/shared_lib/sources/graphics/model.cpp index b9b80b42..4da782d1 100644 --- a/source/shared_lib/sources/graphics/model.cpp +++ b/source/shared_lib/sources/graphics/model.cpp @@ -1874,10 +1874,11 @@ void BaseColorPickEntity::beginPicking() { //glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); //reset current background. This is neeeded to get a proper black background! - glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); + //glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); + glClear(GL_COLOR_BUFFER_BIT); glPushAttrib(GL_ENABLE_BIT); - glEnable(GL_DEPTH_TEST); + //glEnable(GL_DEPTH_TEST); glDisable(GL_TEXTURE_2D); glDisable(GL_FOG); glDisable(GL_LIGHTING);