Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenFlipper-Free
Plugin-Render-Picking
Commits
345e7c50
Commit
345e7c50
authored
Feb 20, 2018
by
schultz
Browse files
fixed windows picking renderer for core profile by disabling blending and
enabling depth test
parent
eeaeaf18
Changes
1
Hide whitespace changes
Inline
Side-by-side
RenderPickingPlugin.cc
View file @
345e7c50
...
...
@@ -164,12 +164,12 @@ void RenderPickingPlugin::render(ACG::GLState* _glState, Viewer::ViewerPropertie
{
ACG
::
GLState
::
disable
(
GL_LIGHTING
);
}
ACG
::
GLState
::
enable
(
GL_BLEND
);
glClear
(
GL_DEPTH_BUFFER_BIT
);
// do the picking
_glState
->
pick_init
(
true
);
ACG
::
SceneGraph
::
PickAction
action
(
*
_glState
,
pickRendererMode_
,
_properties
.
drawMode
());
_glState
->
enable
(
GL_DEPTH_TEST
);
ACG
::
SceneGraph
::
traverse_multipass
(
PluginFunctions
::
getSceneGraphRootNode
()
,
action
,
*
_glState
);
if
(
_glState
->
compatibilityProfile
())
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment