瀏覽代碼

fix crash when show-buffers is enabled

David Rose 21 年之前
父節點
當前提交
6a28498119
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      panda/src/display/graphicsOutput.cxx

+ 3 - 0
panda/src/display/graphicsOutput.cxx

@@ -891,6 +891,9 @@ end_frame() {
     // We have to be sure to clear the _texture pointer, though, or
     // We have to be sure to clear the _texture pointer, though, or
     // we'll end up holding a reference to it forever.
     // we'll end up holding a reference to it forever.
     _texture = NULL;
     _texture = NULL;
+
+    // And we need to stop trying to copy to the texture.
+    _rtm_mode = RTM_none;
   }
   }
 
 
   _cube_map_index = -1;
   _cube_map_index = -1;