mirror of
https://github.com/aharabada/glitchy-engine-beef.git
synced 2026-09-05 13:01:52 +00:00
Fixed memory leak
This commit is contained in:
@@ -12,7 +12,7 @@ namespace GlitchyEngine.Renderer
|
||||
{
|
||||
public extension SwapChain
|
||||
{
|
||||
private GraphicsContext _context ~ _.ReleaseRef();
|
||||
private GraphicsContext _context;
|
||||
|
||||
private bool _changed;
|
||||
|
||||
@@ -55,7 +55,7 @@ namespace GlitchyEngine.Renderer
|
||||
|
||||
public this(GraphicsContext context)
|
||||
{
|
||||
_context = context..AddRef();
|
||||
_context = context;
|
||||
|
||||
SetResolutionFromWindow();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user