- added new commandline option to disable opengl capability checks to help trouble shoot users with bad video drivers: --disable-opengl-checks

(same as ini setting: CheckGlCaps=false)
This commit is contained in:
Mark Vejvoda 2012-08-16 22:36:04 +00:00
parent 7d3a5ae43e
commit 2a06197acd
2 changed files with 13 additions and 0 deletions

View File

@ -3320,6 +3320,12 @@ int glestMain(int argc, char** argv) {
}
}
if(hasCommandArgument(argc, argv,GAME_ARGS[GAME_ARG_DISABLE_OPENGL_CAPS_CHECK]) == true ||
config.getBool("CheckGlCaps") == false) {
printf("**WARNING** disabling opengl capability checking...\n");
config.setBool("CheckGlCaps",false,true);
}
bool enableATIHacks = config.getBool("EnableATIHacks","false");
if(enableATIHacks == true) {
if(SystemFlags::VERBOSE_MODE_ENABLED) printf("**WARNING** Enabling ATI video card hacks\n");

View File

@ -84,6 +84,8 @@ const char *GAME_ARGS[] = {
"--disable-videos",
"--disable-opengl-checks",
"--verbose"
};
@ -152,6 +154,8 @@ enum GAME_ARG_TYPE {
GAME_ARG_DISABLE_VIDEOS,
GAME_ARG_DISABLE_OPENGL_CAPS_CHECK,
GAME_ARG_VERBOSE_MODE,
GAME_ARG_END
@ -436,6 +440,9 @@ void printParameterHelp(const char *argv0, bool foundInvalidArgs) {
printf("\n%s\t\tdisables video playback.",GAME_ARGS[GAME_ARG_DISABLE_VIDEOS]);
printf("\n%s\t\tdisables opengl capability checks (for corrupt or flaky video drivers).",GAME_ARGS[GAME_ARG_DISABLE_OPENGL_CAPS_CHECK]);
printf("\n%s\t\t\tdisplays verbose information in the console.",GAME_ARGS[GAME_ARG_VERBOSE_MODE]);
printf("\n\n");