Browse Source

tinydisplay: Fix crash on window close on macOS

Fixes #1485
rdb 2 years ago
parent
commit
7fb9942fc3
1 changed files with 1 additions and 0 deletions
  1. 1 0
      panda/src/tinydisplay/tinyCocoaGraphicsWindow.mm

+ 1 - 0
panda/src/tinydisplay/tinyCocoaGraphicsWindow.mm

@@ -173,6 +173,7 @@ close_window() {
     CFRelease(swap_buffer._data_provider);
     ZB_close(swap_buffer._frame_buffer);
   }
+  _swap_chain.clear();
 
   CocoaGraphicsWindow::close_window();
 }