Browse Source

preload textures

David Rose 17 years ago
parent
commit
4c2170ee5f
1 changed files with 3 additions and 0 deletions
  1. 3 0
      panda/src/testbed/pview.cxx

+ 3 - 0
panda/src/testbed/pview.cxx

@@ -337,6 +337,9 @@ main(int argc, char *argv[]) {
       }
     }
     window->loop_animations(hierarchy_match_flags);
+
+    // Make sure the textures are preloaded.
+    framework.get_models().prepare_scene(window->get_graphics_window()->get_gsg());
     
     loading_np.remove_node();