Update glstate.cpp (cf6403ae65)

This commit is contained in:
Struma 2021-09-30 17:27:39 -04:00 committed by Roza
parent c9fa4f8619
commit 2be34d35b4

View file

@ -75,9 +75,8 @@ void GLBlendMode::apply(const BlendType &value) {
break;
case BlendSubstraction:
// FIXME Alpha calculation is untested
gl.BlendEquation(GL_FUNC_REVERSE_SUBTRACT);
gl.BlendFuncSeparate(GL_SRC_ALPHA, GL_ONE, GL_ONE, GL_ONE);
gl.BlendFuncSeparate(GL_SRC_ALPHA, GL_ONE, GL_ZERO, GL_ONE);
break;
}
}