- see if this speeds up color picking

This commit is contained in:
Mark Vejvoda
2013-01-16 01:46:31 +00:00
parent ef279c0ce1
commit d7eeaa4d8d

View File

@@ -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);
}
}