From 46acc0e194ff3c1f120199eeca8324b4502118e9 Mon Sep 17 00:00:00 2001 From: Brad Davis Date: Fri, 23 May 2014 01:49:32 -0700 Subject: Updating to 0.3.2 (windows version) --- Samples/CommonSrc/Platform/Win32_Platform.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'Samples/CommonSrc/Platform') diff --git a/Samples/CommonSrc/Platform/Win32_Platform.h b/Samples/CommonSrc/Platform/Win32_Platform.h index 23f0b70..a450cb4 100644 --- a/Samples/CommonSrc/Platform/Win32_Platform.h +++ b/Samples/CommonSrc/Platform/Win32_Platform.h @@ -61,7 +61,12 @@ public: bool SetupWindow(int w, int h); void DestroyWindow(); void ShowWindow(bool visible); - void Exit(int exitcode) { Quit = 1; ExitCode = exitcode; } + void Exit(int exitcode) + { + for (MSG msg; PeekMessage(&msg, NULL, 0, 0, PM_REMOVE); ) + ; + Quit = 1; ExitCode = exitcode; + } RenderDevice* SetupGraphics(const SetupGraphicsDeviceSet& setupGraphicsDesc, const char* type, -- cgit v1.2.3