From 500b9c39a71fdd1a20e42c6604d62d83dfabf47c Mon Sep 17 00:00:00 2001 From: Aaron Hagan Date: Wed, 3 Oct 2018 21:56:29 -0400 Subject: Ignore window erases --- cube/cube.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'cube/cube.cpp') diff --git a/cube/cube.cpp b/cube/cube.cpp index 5c68442c..5d0313ee 100644 --- a/cube/cube.cpp +++ b/cube/cube.cpp @@ -2874,6 +2874,8 @@ LRESULT CALLBACK WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam) { case WM_GETMINMAXINFO: // set window's minimum size ((MINMAXINFO *)lParam)->ptMinTrackSize = demo.minsize; return 0; + case WM_ERASEBKGND: + return 1; case WM_SIZE: // Resize the application to the new window size, except when // it was minimized. Vulkan doesn't support images or swapchains -- cgit v1.2.3