From 54870330b6731dcb2930359212c5899680d9f278 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20L=C3=BCbe=C3=9F?= Date: Thu, 14 Oct 2021 15:54:13 +0200 Subject: [PATCH] Fixed memory leak --- GlitchyEngine/src/Platform/DX11/Renderer/Dx11SwapChain.bf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/GlitchyEngine/src/Platform/DX11/Renderer/Dx11SwapChain.bf b/GlitchyEngine/src/Platform/DX11/Renderer/Dx11SwapChain.bf index df93047..c1cf9e8 100644 --- a/GlitchyEngine/src/Platform/DX11/Renderer/Dx11SwapChain.bf +++ b/GlitchyEngine/src/Platform/DX11/Renderer/Dx11SwapChain.bf @@ -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(); }