Browse Source

don't assertion fail when user closes window

David Rose 22 years ago
parent
commit
54ae975f3c
1 changed files with 1 additions and 0 deletions
  1. 1 0
      panda/src/windisplay/winGraphicsWindow.cxx

+ 1 - 0
panda/src/windisplay/winGraphicsWindow.cxx

@@ -727,6 +727,7 @@ window_proc(HWND hwnd, UINT msg, WPARAM wparam, LPARAM lparam) {
       }
       }
     
     
       case WM_CLOSE:
       case WM_CLOSE:
+        GraphicsWindow::close_window();
         properties.set_open(false);
         properties.set_open(false);
         system_changed_properties(properties);
         system_changed_properties(properties);