// disabled.
cerr << "Fatal error: " << t.getFormattedMessage()
<< "\n (received from " << t.getOrigin() << ')' << endl;
- exit(1);
+ } catch (...) {
+ cerr << "Unknown exception in the main loop. Aborting..." << endl;
}
return 0;
int idle_state = 0;
long global_multi_loop;
-
SGTimeStamp last_time_stamp;
SGTimeStamp current_time_stamp;
exit(-1);
}
+ sgUseDisplayList = fgGetBool( "/sim/rendering/use-display-list", true );
+
// Initialize the Aircraft directory to "" (UIUC)
aircraft_dir = "";
// build our custom render states
globals->get_renderer()->build_states();
- try {
- // pass control off to the master event handler
- fgOSMainLoop();
- } catch (...) {
- SG_LOG( SG_ALL, SG_ALERT,
- "Unknown exception in the main loop. Aborting..." );
- }
+ // pass control off to the master event handler
+ fgOSMainLoop();
// we never actually get here ... but to avoid compiler warnings,
// etc.