diff --git a/Graphics/Primitives/PrimitiveRenderer.cs b/Graphics/Primitives/PrimitiveRenderer.cs index cde72d2990..8c9a78f382 100644 --- a/Graphics/Primitives/PrimitiveRenderer.cs +++ b/Graphics/Primitives/PrimitiveRenderer.cs @@ -100,6 +100,18 @@ namespace CalamityMod.Graphics.Primitives { Main.QueueMainThreadAction(() => { + MainPositions = null; + MainVertices = null; + MainIndices = null; + MainCompletionRatios = null; + MainTangents = null; + MainNormals = null; + WireframeVertices = null; + NonSmoothIndexScratch = null; + VertexBuffer?.Dispose(); + VertexBuffer = null; + IndexBuffer?.Dispose(); + IndexBuffer = null; WireframeEffect?.Dispose(); WireframeEffect = null; });