Browse Source

Revert big mistake

rdb 15 years ago
parent
commit
ad0d9f1f78
1 changed files with 1 additions and 3 deletions
  1. 1 3
      panda/src/display/graphicsOutput.cxx

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

@@ -838,9 +838,7 @@ make_texture_buffer(const string &name, int x_size, int y_size,
                 flags, get_gsg(), get_host());
                 flags, get_gsg(), get_host());
 
 
   if (buffer != (GraphicsOutput *)NULL) {
   if (buffer != (GraphicsOutput *)NULL) {
-    if (tex != (Texture *)NULL) {
-      buffer->add_render_texture(tex, to_ram ? RTM_copy_ram : RTM_bind_or_copy);
-    }
+    buffer->add_render_texture(tex, to_ram ? RTM_copy_ram : RTM_bind_or_copy);
     return buffer;
     return buffer;
   }
   }