From c06828c1935cc4a00ce03e5de9622798c4dfa64e Mon Sep 17 00:00:00 2001 From: David Rose Date: Thu, 20 Jul 2006 21:37:54 +0000 Subject: [PATCH] one more windowed/fullscreen fix --- panda/src/display/graphicsStateGuardian.cxx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/panda/src/display/graphicsStateGuardian.cxx b/panda/src/display/graphicsStateGuardian.cxx index b29341c06d..879629cb41 100644 --- a/panda/src/display/graphicsStateGuardian.cxx +++ b/panda/src/display/graphicsStateGuardian.cxx @@ -1942,6 +1942,12 @@ close_gsg() { // Fortunately, it doesn't really matter, since the graphics API // will be responsible for cleaning up anything we don't clean up // explicitly. We'll just let them drop. + + // However, if any objects have recently been released, we have to + // ensure they are actually deleted properly. + Thread *current_thread = Thread::get_current_thread(); + _prepared_objects->begin_frame(this, current_thread); + _prepared_objects->end_frame(current_thread); } ////////////////////////////////////////////////////////////////////