Browse Source

fix assertion error on window close

David Rose 22 năm trước cách đây
mục cha
commit
61fb002677

+ 1 - 0
panda/src/display/graphicsWindow.cxx

@@ -547,6 +547,7 @@ void GraphicsWindow::
 close_window() {
 close_window() {
   display_cat.info()
   display_cat.info()
     << "Closing " << get_type() << "\n";
     << "Closing " << get_type() << "\n";
+  _is_valid = false;
 }
 }
 
 
 ////////////////////////////////////////////////////////////////////
 ////////////////////////////////////////////////////////////////////