Commit 2bba9981 authored by Martin Schultz's avatar Martin Schultz

only use alpha_test cap in compatibility mode for depthpeeling renderer

parent d55ce754
......@@ -603,7 +603,8 @@ void DepthPeeling::renderDualPeeling(ACG::GLState* _glState, Viewer::ViewerPrope
glEnable(GL_BLEND);
glBlendEquation(GL_MAX_EXT); // get min/max depth
glDisable(GL_ALPHA_TEST);
if(_glState->compatibilityProfile())
glDisable(GL_ALPHA_TEST);
glEnable(GL_DEPTH_TEST);
glDepthFunc(GL_LESS);
......
Markdown is supported
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