瀏覽代碼

nassertv(is_valid());

rdb 16 年之前
父節點
當前提交
a687dd8f96
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      panda/src/display/graphicsOutput.cxx

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

@@ -267,6 +267,7 @@ clear_render_textures() {
 void GraphicsOutput::
 add_render_texture(Texture *tex, RenderTextureMode mode,
                    RenderTexturePlane plane) {
+  nassertv(is_valid());
   
   if (mode == RTM_none) {
     return;