fix model sprites freaking out
This commit is contained in:
1 parent
ed57c27629
commit
48dfe5cb75
1 file changed
+6
-3
@@ -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<DrawSpritesType::kModels>();
|
||||
else
|
||||
HWR_DrawSprites<DrawSpritesType::kSprites>();
|
||||
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;
|
||||
|
||||
Reference in new issue
Block a user