fix texture leak
parent
7d05840277
commit
737cb68f8d
|
@ -94,9 +94,6 @@ namespace Kav
|
||||||
|
|
||||||
SpriteBatch = new SpriteBatch(GraphicsDevice);
|
SpriteBatch = new SpriteBatch(GraphicsDevice);
|
||||||
|
|
||||||
Texture2D whitePixel = new Texture2D(GraphicsDevice, 1, 1);
|
|
||||||
whitePixel.SetData(new[] { Color.White });
|
|
||||||
|
|
||||||
GraphicsDevice.SetRenderTarget(deferredRenderTarget);
|
GraphicsDevice.SetRenderTarget(deferredRenderTarget);
|
||||||
graphicsDevice.Clear(Color.White);
|
graphicsDevice.Clear(Color.White);
|
||||||
GraphicsDevice.SetRenderTarget(null);
|
GraphicsDevice.SetRenderTarget(null);
|
||||||
|
|
Loading…
Reference in New Issue