mirror of
https://github.com/glest/glest-source.git
synced 2025-02-24 03:32:35 +01:00
Attempts to recover from errors
This commit is contained in:
parent
8e5a8fe5ae
commit
3f750ee590
@ -7952,8 +7952,17 @@ namespace
|
||||
}
|
||||
//printf("looping\n");
|
||||
}
|
||||
|
||||
program->loop();
|
||||
gameloop:
|
||||
#ifndef DEBUG
|
||||
try {
|
||||
#endif
|
||||
program->loop();
|
||||
#ifndef DEBUG
|
||||
} catch (...) {
|
||||
printf("\nAn unhandled error occurred. Attempting to recover...\n");
|
||||
goto gameloop;
|
||||
}
|
||||
#endif
|
||||
|
||||
// Because OpenGL really doesn't do multi-threading well
|
||||
// if(difftime(time(NULL),lastTextureLoadEvent) >= 3) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user