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
eeaeaf18
Commit
eeaeaf18
authored
Sep 29, 2017
by
Martin Schultz
Browse files
minor fixes for picking renderer in core profile
parent
436d11a3
Changes
1
Hide whitespace changes
Inline
Side-by-side
RenderPickingPlugin.cc
View file @
eeaeaf18
...
...
@@ -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
);
...
...
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