Attempts to recover from errors

This commit is contained in:
mathusummut 2018-09-20 21:56:02 +02:00
parent 8e5a8fe5ae
commit 3f750ee590

View File

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