Fixed Application::Close() minimizing the window instead of closing it #263

Merged
Pycorax merged 1 commits from SP3-6-c-scripting into main 2022-11-23 17:07:12 +08:00
1 changed files with 2 additions and 1 deletions
Showing only changes of commit 20a1fdc16e - Show all commits

View File

@ -69,7 +69,8 @@ namespace SHADE
if (gfxSystem) if (gfxSystem)
{ {
auto WND = gfxSystem->GetWindow(); auto WND = gfxSystem->GetWindow();
return WND->Close(); if (WND)
WND->Destroy();
} }
SHLOG_WARNING("[SHGraphicsSystemInterface] Failed to close window."); SHLOG_WARNING("[SHGraphicsSystemInterface] Failed to close window.");