mirror of
https://github.com/glest/glest-source.git
synced 2025-08-20 23:21:19 +02:00
- see if this fixes color picking
This commit is contained in:
@@ -1527,24 +1527,25 @@ void BaseColorPickEntity::beginPicking() {
|
|||||||
//glClearColor (0.0,0.0,0.0,0.0);
|
//glClearColor (0.0,0.0,0.0,0.0);
|
||||||
//glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
|
//glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
|
||||||
//glClear(GL_COLOR_BUFFER_BIT);
|
//glClear(GL_COLOR_BUFFER_BIT);
|
||||||
|
|
||||||
glDisable(GL_TEXTURE_2D);
|
glDisable(GL_TEXTURE_2D);
|
||||||
glDisable(GL_FOG);
|
//glDisable(GL_FOG);
|
||||||
glDisable(GL_LIGHTING);
|
glDisable(GL_LIGHTING);
|
||||||
|
|
||||||
glDisable(GL_BLEND);
|
glDisable(GL_BLEND);
|
||||||
glDisable(GL_MULTISAMPLE);
|
//glDisable(GL_MULTISAMPLE);
|
||||||
glDisable(GL_DITHER);
|
//glDisable(GL_DITHER);
|
||||||
}
|
}
|
||||||
|
|
||||||
void BaseColorPickEntity::endPicking() {
|
void BaseColorPickEntity::endPicking() {
|
||||||
// turn off texturing, lighting and fog
|
// turn off texturing, lighting and fog
|
||||||
glEnable(GL_TEXTURE_2D);
|
//glEnable(GL_TEXTURE_2D);
|
||||||
glEnable(GL_FOG);
|
//glEnable(GL_FOG);
|
||||||
glEnable(GL_LIGHTING);
|
//glEnable(GL_LIGHTING);
|
||||||
|
|
||||||
glEnable(GL_BLEND);
|
//glEnable(GL_BLEND);
|
||||||
glEnable(GL_MULTISAMPLE);
|
//glEnable(GL_MULTISAMPLE);
|
||||||
glEnable(GL_DITHER);
|
//glEnable(GL_DITHER);
|
||||||
}
|
}
|
||||||
|
|
||||||
vector<int> BaseColorPickEntity::getPickedList(int x,int y,int w,int h,
|
vector<int> BaseColorPickEntity::getPickedList(int x,int y,int w,int h,
|
||||||
|
Reference in New Issue
Block a user