prepare scene everywhere

This commit is contained in:
cxgeorge 2001-11-03 02:52:47 +00:00
parent b2c21cab7f
commit 7a5a0f67ee

View File

@ -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);