- 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:
parent
7d3a5ae43e
commit
2a06197acd
|
@ -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");
|
||||
|
|
|
@ -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");
|
||||
|
|
Loading…
Reference in New Issue