mirror of
https://github.com/glest/glest-source.git
synced 2025-08-17 13:50:43 +02:00
- see if this speeds up color picking
This commit is contained in:
@@ -1434,14 +1434,14 @@ Pixmap2D *PixelBufferWrapper::getPixelBufferFor(int x,int y,int w,int h, int col
|
|||||||
void PixelBufferWrapper::begin() {
|
void PixelBufferWrapper::begin() {
|
||||||
if(PixelBufferWrapper::isPBOEnabled == true) {
|
if(PixelBufferWrapper::isPBOEnabled == true) {
|
||||||
// set the framebuffer to read
|
// set the framebuffer to read
|
||||||
//glReadBuffer(GL_FRONT);
|
glReadBuffer(GL_FRONT);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void PixelBufferWrapper::end() {
|
void PixelBufferWrapper::end() {
|
||||||
if(PixelBufferWrapper::isPBOEnabled == true) {
|
if(PixelBufferWrapper::isPBOEnabled == true) {
|
||||||
// set the framebuffer to read
|
// set the framebuffer to read
|
||||||
//glReadBuffer(GL_BACK);
|
glReadBuffer(GL_BACK);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user