Browse Source

Examples: DX9: Fix WM_SIZE handling bug introduced in 031e152d2. (#6374)

ocornut 2 years ago
parent
commit
c8579abb43
1 changed files with 1 additions and 0 deletions
  1. 1 0
      examples/example_win32_directx9/main.cpp

+ 1 - 0
examples/example_win32_directx9/main.cpp

@@ -99,6 +99,7 @@ int main(int, char**)
         {
             g_d3dpp.BackBufferWidth = g_ResizeWidth;
             g_d3dpp.BackBufferHeight = g_ResizeHeight;
+            g_ResizeWidth = g_ResizeHeight = 0;
             ResetDevice();
         }