diff options
| author | Bryan <bryan@jeal.ca> | 2025-10-21 09:36:46 -0600 |
|---|---|---|
| committer | Bryan <bryan@jeal.ca> | 2025-10-21 09:36:46 -0600 |
| commit | d075e82cf8ce8016685db9038f56a75763c9dfc2 (patch) | |
| tree | d0aa7b65a0dfcc8c995983374210e160024f8549 /util | |
| parent | 46f80f093a8023a3519a3c6c98e15bf7db9e3030 (diff) | |
Reverts fix for sokol_gfx validation issue and applies @floooh suggestion instead.
Diffstat (limited to 'util')
| -rw-r--r-- | util/sokol_spine.h | 3 |
1 files changed, 1 insertions, 2 deletions
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); |