1 parent 2c981b5 commit 8f0ff3bCopy full SHA for 8f0ff3b
1 file changed
Snooper/Rendering/Systems/ClusteredLightSystem.cs
@@ -256,6 +256,7 @@ public void Resize(int newWidth, int newHeight)
256
GridDimensionY = (_screenHeight + TileSize - 1) / TileSize;
257
_numClusters = GridDimensionX * GridDimensionY * GridDimensionZ;
258
_numWorkGroups = (_numClusters + WorkGroupSize - 1) / WorkGroupSize;
259
+ if (!HasClusters) return;
260
261
_clusterAABBBuffer.Reallocate(_numClusters);
262
_clusterDataBuffer.Reallocate(_numClusters);
0 commit comments