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

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.");