diff --git a/MLEM/Extensions/GraphicsExtensions.cs b/MLEM/Extensions/GraphicsExtensions.cs index 50f5631..bcd4487 100644 --- a/MLEM/Extensions/GraphicsExtensions.cs +++ b/MLEM/Extensions/GraphicsExtensions.cs @@ -55,11 +55,7 @@ namespace MLEM.Extensions { } public void Dispose() { - if (this.lastTargets != null) { - this.device.SetRenderTargets(this.lastTargets); - } else { - this.device.SetRenderTarget(null); - } + this.device.SetRenderTargets(this.lastTargets); } }