Skip to content

Commit

Permalink
sokol_debug.text.h: fix flipped alpha blend factors
Browse files Browse the repository at this point in the history
See #1090

Many thanks to @kochol for noticing the issue.
  • Loading branch information
floooh committed Apr 8, 2024
1 parent 7f7cd64 commit 6747384
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions util/sokol_debugtext.h
Original file line number Diff line number Diff line change
Expand Up @@ -3849,8 +3849,8 @@ static void _sdtx_init_context(sdtx_context ctx_id, const sdtx_context_desc_t* i
pip_desc.colors[0].blend.enabled = true;
pip_desc.colors[0].blend.src_factor_rgb = SG_BLENDFACTOR_SRC_ALPHA;
pip_desc.colors[0].blend.dst_factor_rgb = SG_BLENDFACTOR_ONE_MINUS_SRC_ALPHA;
pip_desc.colors[0].blend.src_factor_alpha = SG_BLENDFACTOR_ZERO;
pip_desc.colors[0].blend.dst_factor_alpha = SG_BLENDFACTOR_ONE;
pip_desc.colors[0].blend.src_factor_alpha = SG_BLENDFACTOR_ONE;
pip_desc.colors[0].blend.dst_factor_alpha = SG_BLENDFACTOR_ZERO;
pip_desc.label = "sdtx-pipeline";
ctx->pip = sg_make_pipeline(&pip_desc);
SOKOL_ASSERT(SG_INVALID_ID != ctx->pip.id);
Expand Down

0 comments on commit 6747384

Please sign in to comment.