From 737cb68f8d352089ea88c925a8218c9578b481eb Mon Sep 17 00:00:00 2001 From: cosmonaut Date: Wed, 26 Aug 2020 13:24:01 -0700 Subject: [PATCH] fix texture leak --- Renderer.cs | 3 --- 1 file changed, 3 deletions(-) diff --git a/Renderer.cs b/Renderer.cs index 8c0384f..0a77640 100644 --- a/Renderer.cs +++ b/Renderer.cs @@ -94,9 +94,6 @@ namespace Kav SpriteBatch = new SpriteBatch(GraphicsDevice); - Texture2D whitePixel = new Texture2D(GraphicsDevice, 1, 1); - whitePixel.SetData(new[] { Color.White }); - GraphicsDevice.SetRenderTarget(deferredRenderTarget); graphicsDevice.Clear(Color.White); GraphicsDevice.SetRenderTarget(null);