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;