From d075e82cf8ce8016685db9038f56a75763c9dfc2 Mon Sep 17 00:00:00 2001 From: Bryan Date: Tue, 21 Oct 2025 09:36:46 -0600 Subject: Reverts fix for sokol_gfx validation issue and applies @floooh suggestion instead. --- util/sokol_spine.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'util') diff --git a/util/sokol_spine.h b/util/sokol_spine.h index fd29d1b4..95afc349 100644 --- a/util/sokol_spine.h +++ b/util/sokol_spine.h @@ -5024,6 +5024,7 @@ static void _sspine_draw_layer(_sspine_context_t* ctx, int layer, const sspine_l sg_apply_pipeline(cmd->pip); cur_pip_id = cmd->pip.id; sg_apply_uniforms(0, &vsparams_range); + sg_apply_uniforms(1, &fsparams_range); cur_view_id = SG_INVALID_ID; } if ((cur_view_id != cmd->view.id) || (cur_smp_id != cmd->smp.id)) { @@ -5037,8 +5038,6 @@ static void _sspine_draw_layer(_sspine_context_t* ctx, int layer, const sspine_l fsparams.pma = cmd->pma; sg_apply_uniforms(1, &fsparams_range); cur_pma = cmd->pma; - } else { - sg_apply_uniforms(1, &fsparams_range); } if (cmd->num_elements > 0) { sg_draw(cmd->base_element, cmd->num_elements, 1); -- cgit v1.2.3