Merge pull request #263 from SHADE-DP/SP3-6-c-scripting

Fixed Application::Close() minimizing the window instead of closing it
This commit is contained in:
XiaoQiDigipen 2022-11-23 17:07:12 +08:00 committed by GitHub
commit f896b4a6e0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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.");