From 20a1fdc16ea884b2208f202d217d12a91db89e25 Mon Sep 17 00:00:00 2001 From: Kah Wei Date: Wed, 23 Nov 2022 17:03:57 +0800 Subject: [PATCH] Fixed Application::Close() not closing but instead minimizing the window --- .../Graphics/MiddleEnd/Interface/SHGraphicsSystemInterface.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/SHADE_Engine/src/Graphics/MiddleEnd/Interface/SHGraphicsSystemInterface.cpp b/SHADE_Engine/src/Graphics/MiddleEnd/Interface/SHGraphicsSystemInterface.cpp index 1ad46e04..4b9a1e67 100644 --- a/SHADE_Engine/src/Graphics/MiddleEnd/Interface/SHGraphicsSystemInterface.cpp +++ b/SHADE_Engine/src/Graphics/MiddleEnd/Interface/SHGraphicsSystemInterface.cpp @@ -69,7 +69,8 @@ namespace SHADE if (gfxSystem) { auto WND = gfxSystem->GetWindow(); - return WND->Close(); + if (WND) + WND->Destroy(); } SHLOG_WARNING("[SHGraphicsSystemInterface] Failed to close window."); -- 2.40.1