Commit eeaeaf18 authored by Martin Schultz's avatar Martin Schultz
Browse files

minor fixes for picking renderer in core profile

parent 436d11a3
......@@ -160,7 +160,10 @@ void RenderPickingPlugin::render(ACG::GLState* _glState, Viewer::ViewerPropertie
//store and restore blend state ... no idea if this is actually necessary
bool blendState = _glState->blending();
ACG::GLState::disable(GL_LIGHTING);
if(_glState->compatibilityProfile())
{
ACG::GLState::disable(GL_LIGHTING);
}
ACG::GLState::enable(GL_BLEND);
glClear(GL_DEPTH_BUFFER_BIT);
......@@ -169,7 +172,10 @@ void RenderPickingPlugin::render(ACG::GLState* _glState, Viewer::ViewerPropertie
ACG::SceneGraph::PickAction action(*_glState, pickRendererMode_, _properties.drawMode());
ACG::SceneGraph::traverse_multipass( PluginFunctions::getSceneGraphRootNode() , action,*_glState);
ACG::GLState::enable(GL_LIGHTING);
if(_glState->compatibilityProfile())
{
ACG::GLState::enable(GL_LIGHTING);
}
if(!blendState)
ACG::GLState::disable(GL_BLEND);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment