aboutsummaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
authorAndre Weissflog <floooh@gmail.com>2024-04-08 10:09:49 +0200
committerAndre Weissflog <floooh@gmail.com>2024-04-08 10:09:49 +0200
commit6747384927e4520bd3391bba81bf416567655239 (patch)
treed8b18f2bc5f9684722b3606aed47fa71173cd8f3 /util
parent7f7cd64c6d9d1d4ed08d88a3879b1d69841bf0a4 (diff)
sokol_debug.text.h: fix flipped alpha blend factors
See #1090 Many thanks to @kochol for noticing the issue.
Diffstat (limited to 'util')
-rw-r--r--util/sokol_debugtext.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/util/sokol_debugtext.h b/util/sokol_debugtext.h
index cec06946..9e5062d9 100644
--- a/util/sokol_debugtext.h
+++ b/util/sokol_debugtext.h
@@ -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);