2
0
rdb 16 жил өмнө
parent
commit
a687dd8f96

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

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