From 70ec827d2b03ded298a7714ad2d06df7b8904103 Mon Sep 17 00:00:00 2001 From: Aaron Carter <89698828+atcarter714@users.noreply.github.com> Date: Sun, 8 Feb 2026 23:55:27 -0600 Subject: [PATCH] Check for minimized size on WM_SIZE message Without this, the engine will crash when Display::Resize is called ... --- MiniEngine/Core/GameCore.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/MiniEngine/Core/GameCore.cpp b/MiniEngine/Core/GameCore.cpp index 3e72e3efd..89d08710f 100644 --- a/MiniEngine/Core/GameCore.cpp +++ b/MiniEngine/Core/GameCore.cpp @@ -164,7 +164,8 @@ namespace GameCore switch( message ) { case WM_SIZE: - Display::Resize((UINT)(UINT64)lParam & 0xFFFF, (UINT)(UINT64)lParam >> 16); + if( wParam != SIZE_MINIMIZED ) + Display::Resize((UINT)(UINT64)lParam & 0xFFFF, (UINT)(UINT64)lParam >> 16); break; case WM_DESTROY: