Fixed memory leak in Renderer2D

This commit is contained in:
Simon Lübeß
2021-10-09 16:47:20 +02:00
parent b020855ec5
commit 5a82b89622
+1 -1
View File
@@ -250,9 +250,9 @@ namespace GlitchyEngine.Renderer
//s_textureColorEffect.Bind(Renderer._context); //s_textureColorEffect.Bind(Renderer._context);
s_currentEffect?.ReleaseRef();
if(effect != null) if(effect != null)
{ {
s_currentEffect?.ReleaseRef();
s_currentEffect = effect..AddRef(); s_currentEffect = effect..AddRef();
} }
else else