Skip to content

Commit

Permalink
Revert "Fix additive blend func"
Browse files Browse the repository at this point in the history
This reverts commit 7aa07f2.
  • Loading branch information
Speak2Erase committed Aug 19, 2024
1 parent 7aa07f2 commit a70d76f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion binding/osfm-screen-binding.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ struct PingPong {
}

void clearBuffers() {
glState.clearColor.pushSet(Vec4(0, 0, 0, 0));
glState.clearColor.pushSet(Vec4(0, 0, 0, 1));

for (int i = 0; i < 2; ++i) {
FBO::bind(rt[i].fbo);
Expand Down
2 changes: 1 addition & 1 deletion src/display/gl/glstate.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ void GLBlendMode::apply(const BlendType &value) {

case BlendAddition:
gl.BlendEquation(GL_FUNC_ADD);
gl.BlendFuncSeparate(GL_ONE, GL_ONE, GL_ZERO, GL_ONE);
gl.BlendFuncSeparate(GL_SRC_ALPHA, GL_ONE, GL_ONE, GL_ONE);
break;

case BlendSubstraction:
Expand Down

0 comments on commit a70d76f

Please sign in to comment.