Fix particles regression on DirectX

This commit is contained in:
Wojtek Figat
2025-08-06 23:39:46 +02:00
parent cf9c203855
commit 959371a995
4 changed files with 6 additions and 5 deletions

View File

@@ -264,6 +264,8 @@ void RenderList::AddDelayedDraw(DelayedDraw&& func)
void RenderList::DrainDelayedDraws(RenderContext& renderContext)
{
if (_delayedDraws.IsEmpty())
return;
PROFILE_GPU_CPU_NAMED("DelayedDraws");
for (DelayedDraw& e : _delayedDraws)
e(renderContext);