Commit 9912f593 authored by schultz's avatar schultz

fixed glerror caused by materialnode passing bad values to blendfunc

parent bdcfdd8e
......@@ -304,7 +304,7 @@ void MaterialNode::enter(GLState& _state, const DrawModes::DrawMode& _drawmode
if (material_.blending_)
{
_state.set_depthFunc(GL_LEQUAL);
ACG::GLState::blendFunc(material_.blendParam1_, material_.blendParam2_);
ACG::GLState::blendFunc(material_.blendingParam1(), material_.blendingParam2());
ACG::GLState::enable(GL_BLEND);
}
else
......
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