Commit 345e7c50 authored by schultz's avatar schultz
Browse files

fixed windows picking renderer for core profile by disabling blending and

enabling depth test
parent eeaeaf18
...@@ -164,12 +164,12 @@ void RenderPickingPlugin::render(ACG::GLState* _glState, Viewer::ViewerPropertie ...@@ -164,12 +164,12 @@ void RenderPickingPlugin::render(ACG::GLState* _glState, Viewer::ViewerPropertie
{ {
ACG::GLState::disable(GL_LIGHTING); ACG::GLState::disable(GL_LIGHTING);
} }
ACG::GLState::enable(GL_BLEND);
glClear(GL_DEPTH_BUFFER_BIT); glClear(GL_DEPTH_BUFFER_BIT);
// do the picking // do the picking
_glState->pick_init (true); _glState->pick_init (true);
ACG::SceneGraph::PickAction action(*_glState, pickRendererMode_, _properties.drawMode()); ACG::SceneGraph::PickAction action(*_glState, pickRendererMode_, _properties.drawMode());
_glState->enable(GL_DEPTH_TEST);
ACG::SceneGraph::traverse_multipass( PluginFunctions::getSceneGraphRootNode() , action,*_glState); ACG::SceneGraph::traverse_multipass( PluginFunctions::getSceneGraphRootNode() , action,*_glState);
if(_glState->compatibilityProfile()) if(_glState->compatibilityProfile())
......
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