Renderer: Dispose worldBuffer only when it was initialized.

This commit is contained in:
LipkeGu
2024-02-06 01:13:40 +01:00
committed by Gustas
parent 4e031a6ea5
commit 4077f28285

View File

@@ -534,7 +534,7 @@ namespace OpenRA
public void Dispose()
{
worldBuffer.Dispose();
worldBuffer?.Dispose();
screenBuffer.Dispose();
worldBufferSnapshot.Dispose();
tempVertexBuffer.Dispose();