Ignore window erases
diff --git a/cube/cube.c b/cube/cube.c
index fb23936..ef54fd3 100644
--- a/cube/cube.c
+++ b/cube/cube.c
@@ -2425,6 +2425,8 @@
         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
diff --git a/cube/cube.cpp b/cube/cube.cpp
index 5c68442..5d0313e 100644
--- a/cube/cube.cpp
+++ b/cube/cube.cpp
@@ -2874,6 +2874,8 @@
         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