From 48dfe5cb75db93ada537f06e94ac41b7965ad655 Mon Sep 17 00:00:00 2001 From: Alug Date: Thu, 4 Dec 2025 01:24:22 +0100 Subject: [PATCH] fix model sprites freaking out --- src/hardware/hw_main.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/hardware/hw_main.cpp b/src/hardware/hw_main.cpp index 325a91eb6..ffa712e99 100644 --- a/src/hardware/hw_main.cpp +++ b/src/hardware/hw_main.cpp @@ -5621,15 +5621,18 @@ static void HWR_RenderViewpoint(gl_portal_t *rootportal, int stencil_level, bool PS_START_TIMING(ps_hw_spritesorttime); HWR_SortVisSprites(); PS_STOP_TIMING(ps_hw_spritesorttime); - PS_START_TIMING(ps_hw_spritedrawtime); - if (LIKELY(cv_glbatching.value)) + + if (LIKELY(cv_glbatching.value && !cv_glmdls.value)) HWR_StartBatching(); + + PS_START_TIMING(ps_hw_spritedrawtime); if (UNLIKELY(cv_glmdls.value)) HWR_DrawSprites(); else HWR_DrawSprites(); PS_STOP_TIMING(ps_hw_spritedrawtime); - if (LIKELY(cv_glbatching.value)) + + if (LIKELY(cv_glbatching.value && !cv_glmdls.value)) HWR_RenderBatches(false); ps_numdrawnodes.value.i = 0;