mirror of
https://github.com/glest/glest-source.git
synced 2025-08-12 11:24:00 +02:00
- 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:
@@ -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");
|
bool enableATIHacks = config.getBool("EnableATIHacks","false");
|
||||||
if(enableATIHacks == true) {
|
if(enableATIHacks == true) {
|
||||||
if(SystemFlags::VERBOSE_MODE_ENABLED) printf("**WARNING** Enabling ATI video card hacks\n");
|
if(SystemFlags::VERBOSE_MODE_ENABLED) printf("**WARNING** Enabling ATI video card hacks\n");
|
||||||
|
@@ -84,6 +84,8 @@ const char *GAME_ARGS[] = {
|
|||||||
|
|
||||||
"--disable-videos",
|
"--disable-videos",
|
||||||
|
|
||||||
|
"--disable-opengl-checks",
|
||||||
|
|
||||||
"--verbose"
|
"--verbose"
|
||||||
|
|
||||||
};
|
};
|
||||||
@@ -152,6 +154,8 @@ enum GAME_ARG_TYPE {
|
|||||||
|
|
||||||
GAME_ARG_DISABLE_VIDEOS,
|
GAME_ARG_DISABLE_VIDEOS,
|
||||||
|
|
||||||
|
GAME_ARG_DISABLE_OPENGL_CAPS_CHECK,
|
||||||
|
|
||||||
GAME_ARG_VERBOSE_MODE,
|
GAME_ARG_VERBOSE_MODE,
|
||||||
|
|
||||||
GAME_ARG_END
|
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 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%s\t\t\tdisplays verbose information in the console.",GAME_ARGS[GAME_ARG_VERBOSE_MODE]);
|
||||||
|
|
||||||
printf("\n\n");
|
printf("\n\n");
|
||||||
|
Reference in New Issue
Block a user