Skip to content

Commit

Permalink
Update glstate.cpp
Browse files Browse the repository at this point in the history
Fixes the GL blend formula for Subtractive blending
  • Loading branch information
JaidenAlemni authored and Ancurio committed Sep 19, 2021
1 parent f138731 commit cf6403a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/glstate.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -84,10 +84,9 @@ 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_ZERO, GL_ONE);
break;
}
}
Expand Down

0 comments on commit cf6403a

Please sign in to comment.