From d7eeaa4d8d6e051b79ae0310733c67171cd9910e Mon Sep 17 00:00:00 2001 From: Mark Vejvoda Date: Wed, 16 Jan 2013 01:46:31 +0000 Subject: [PATCH] - see if this speeds up color picking --- source/shared_lib/sources/graphics/model.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/shared_lib/sources/graphics/model.cpp b/source/shared_lib/sources/graphics/model.cpp index 27bc0c1d9..dffcac415 100644 --- a/source/shared_lib/sources/graphics/model.cpp +++ b/source/shared_lib/sources/graphics/model.cpp @@ -1434,14 +1434,14 @@ Pixmap2D *PixelBufferWrapper::getPixelBufferFor(int x,int y,int w,int h, int col void PixelBufferWrapper::begin() { if(PixelBufferWrapper::isPBOEnabled == true) { // set the framebuffer to read - //glReadBuffer(GL_FRONT); + glReadBuffer(GL_FRONT); } } void PixelBufferWrapper::end() { if(PixelBufferWrapper::isPBOEnabled == true) { // set the framebuffer to read - //glReadBuffer(GL_BACK); + glReadBuffer(GL_BACK); } }