We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 54fb74e commit b8a4d74Copy full SHA for b8a4d74
1 file changed
source/VulkanRenderer.cs
@@ -1217,7 +1217,7 @@ private void DisposeUnusued()
1217
}
1218
1219
//dispose unused meshes
1220
- Span<RendererKey> toRemoveKeys = stackalloc RendererKey[256];
+ Span<RendererKey> toRemoveKeys = stackalloc RendererKey[Math.Max(pipelineKeys.Length, meshKeys.Length)];
1221
for (int i = 0; i < meshKeys.Length; i++)
1222
{
1223
RendererKey key = meshKeys[i];
0 commit comments