Fixed crash when closing window

This commit is contained in:
Simon Lübeß
2020-12-29 17:34:09 +01:00
parent 567ef97ffb
commit 23d2572941
@@ -424,10 +424,10 @@ namespace GlitchyEngine
// Window closing // Window closing
case WM_CLOSE: case WM_CLOSE:
{ {
PostQuitMessage(0);
var event = scope WindowCloseEvent(); var event = scope WindowCloseEvent();
window._eventCallback(event); window._eventCallback(event);
return 0;
} }
} }