Skip to content

Commit

Permalink
Fix the darken blend mode
Browse files Browse the repository at this point in the history
  • Loading branch information
slime73 committed Nov 1, 2024
1 parent d099da1 commit 819d9b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/graphics/renderstate.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ static const BlendState blendStates[BLEND_MAX_ENUM] =
{BLENDOP_MAX, BLENDOP_MAX, BLENDFACTOR_ZERO, BLENDFACTOR_ZERO, BLENDFACTOR_ONE, BLENDFACTOR_ONE},

// BLEND_DARKEN
{BLENDOP_MAX, BLENDOP_MAX, BLENDFACTOR_ONE, BLENDFACTOR_ONE, BLENDFACTOR_ONE, BLENDFACTOR_ONE},
{BLENDOP_MIN, BLENDOP_MIN, BLENDFACTOR_ZERO, BLENDFACTOR_ZERO, BLENDFACTOR_ONE, BLENDFACTOR_ONE},

// BLEND_SCREEN
{BLENDOP_ADD, BLENDOP_ADD, BLENDFACTOR_ONE, BLENDFACTOR_ONE, BLENDFACTOR_ONE_MINUS_SRC_COLOR, BLENDFACTOR_ONE_MINUS_SRC_COLOR},
Expand Down

0 comments on commit 819d9b7

Please sign in to comment.