mirror of
https://github.com/aharabada/glitchy-engine-beef.git
synced 2026-09-05 13:01:52 +00:00
Fixed memory leak in Renderer2D
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user