From ebd56e54b177b3fcc22191284cbd37f309ba603e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20L=C3=BCbe=C3=9F?= Date: Mon, 16 Nov 2020 21:17:04 +0100 Subject: [PATCH] Fixed ImGui being distorted after window resize or move --- GlitchyEngine/src/Platform/Windows/WindowsWindow.bf | 3 --- 1 file changed, 3 deletions(-) diff --git a/GlitchyEngine/src/Platform/Windows/WindowsWindow.bf b/GlitchyEngine/src/Platform/Windows/WindowsWindow.bf index c637c02..5e8f3b7 100644 --- a/GlitchyEngine/src/Platform/Windows/WindowsWindow.bf +++ b/GlitchyEngine/src/Platform/Windows/WindowsWindow.bf @@ -6,7 +6,6 @@ using DirectX.Windows.Kernel32; using DirectX.Windows.WindowMessages; using GlitchyEngine.Events; using System.Diagnostics; -using imgui_beef; using GlitchyEngine.Platform.DX11; using GlitchyEngine.Math; using static System.Windows; @@ -283,8 +282,6 @@ namespace GlitchyEngine.Platform.Windows { window._isResizingOrMoving = false; - DirectX.UpdateSwapchain((.)window._clientRect.Width, (.)window._clientRect.Width); - var resEvent = scope WindowResizeEvent(window._clientRect.Width, window._clientRect.Height, false); window._eventCallback(resEvent); var moveEvent = scope WindowMoveEvent(window._clientRect.X, window._clientRect.Y, false);