Fix regression in particles

This commit is contained in:
Wojtek Figat
2025-01-11 22:45:04 +01:00
parent 647d74af0d
commit b71f803554
2 changed files with 6 additions and 9 deletions

View File

@@ -620,7 +620,7 @@ void DrawEmitterGPU(RenderContext& renderContext, ParticleBuffer* buffer, DrawCa
auto emitter = buffer->Emitter;
// Check if need to perform any particles sorting
if (emitter->Graph.SortModules.HasItems() && renderContext.View.Pass != DrawPass::Depth)
if (emitter->Graph.SortModules.HasItems() && renderContext.View.Pass != DrawPass::Depth && buffer->GPU.ParticlesCountMax != 0)
{
PROFILE_GPU_CPU_NAMED("Sort Particles");