diff --git a/src/hardware/hw_main.cpp b/src/hardware/hw_main.cpp index c41ad5a3d..1478f34f7 100644 --- a/src/hardware/hw_main.cpp +++ b/src/hardware/hw_main.cpp @@ -5586,9 +5586,6 @@ void HWR_RenderViewpoint(gl_portal_t *rootportal, player_t *player, int stencil_ PS_STOP_TIMING(ps_bsptime); - if (LIKELY(cv_glbatching.value)) - HWR_RenderBatches(); - if constexpr (Type == RenderViewpointType::kPortal) { if (skyWallVertexArraySize) // if there are skywalls to draw using the alternate method @@ -5617,6 +5614,9 @@ void HWR_RenderViewpoint(gl_portal_t *rootportal, player_t *player, int stencil_ HWR_DrawSprites(); PS_STOP_TIMING(ps_hw_spritedrawtime); + if (LIKELY(cv_glbatching.value)) + HWR_RenderBatches(); + ps_numdrawnodes.value.i = 0; ps_hw_nodesorttime.value.p = 0; ps_hw_nodedrawtime.value.p = 0;