Browse Source

prepare scene everywhere

cxgeorge 24 years ago
parent
commit
7a5a0f67ee
1 changed files with 4 additions and 4 deletions
  1. 4 4
      panda/src/framework/framework.cxx

+ 4 - 4
panda/src/framework/framework.cxx

@@ -1522,12 +1522,12 @@ int framework_main(int argc, char *argv[]) {
     AnimControlCollection anim_controls;
     auto_bind(root, anim_controls, ~0);
     anim_controls.loop_all(true);
-
-    // Now prepare all the textures with the GSG.
-    NodePath render_path(render);
-    render_path.prepare_scene(main_win->get_gsg());
   }
 
+  // Now prepare all the textures with the GSG.
+  NodePath render_path(render);
+  render_path.prepare_scene(main_win->get_gsg());
+
   // Set up keyboard events.
   event_handler.add_hook("escape", event_esc);
   event_handler.add_hook("q", event_esc);