From 6a284981193869b16c2756993335d5ae4e363cab Mon Sep 17 00:00:00 2001 From: David Rose Date: Mon, 28 Mar 2005 18:56:55 +0000 Subject: [PATCH] fix crash when show-buffers is enabled --- panda/src/display/graphicsOutput.cxx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/panda/src/display/graphicsOutput.cxx b/panda/src/display/graphicsOutput.cxx index 5274d6e198..fb5a4a181e 100644 --- a/panda/src/display/graphicsOutput.cxx +++ b/panda/src/display/graphicsOutput.cxx @@ -891,6 +891,9 @@ end_frame() { // We have to be sure to clear the _texture pointer, though, or // we'll end up holding a reference to it forever. _texture = NULL; + + // And we need to stop trying to copy to the texture. + _rtm_mode = RTM_none; } _cube_map_index = -1;