Commit 0686bcdc authored by Christopher Tenter's avatar Christopher Tenter

separate blend functions on snapshot with state locking refs #2506

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@20981 383ad7c9-94d9-4d36-a494-682f7c89f535
parent ac8faa42
......@@ -390,7 +390,7 @@ void DepthPeeling::renderFrontPeeling(ACG::GLState* _glState,
glEnable(GL_BLEND);
glBlendEquation(GL_FUNC_ADD);
glBlendFuncSeparate(GL_DST_ALPHA, GL_ONE,
ACG::GLState::blendFuncSeparate(GL_DST_ALPHA, GL_ONE,
GL_ZERO, GL_ONE_MINUS_SRC_ALPHA);
......@@ -651,7 +651,7 @@ void DepthPeeling::renderDualPeeling(ACG::GLState* _glState, Viewer::ViewerPrope
glDrawBuffer(colorBlendTarget);
glBlendEquationEXT(GL_FUNC_ADD);
glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
ACG::GLState::blendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
// bind back color texture to slot 0
glActiveTexture(GL_TEXTURE0);
......
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