gsdx-ogl: don't create override option for mandatory extension

Ini is alredy big enough
This commit is contained in:
Gregory Hainaut 2015-05-01 14:18:05 +02:00
parent a0c17ae0a4
commit 2ff3d17f67
1 changed files with 7 additions and 5 deletions

View File

@ -346,13 +346,15 @@ namespace GLLoader {
static bool status_and_override(bool& found, const std::string& name, bool mandatory = false) static bool status_and_override(bool& found, const std::string& name, bool mandatory = false)
{ {
if (!found) { if (mandatory) {
if(mandatory) { if (!found) {
fprintf(stderr, "ERROR: %s is NOT SUPPORTED\n", name.c_str()); fprintf(stderr, "ERROR: %s is NOT SUPPORTED\n", name.c_str());
return false;
} else {
fprintf(stderr, "INFO: %s is NOT SUPPORTED\n", name.c_str());
} }
return found;
}
if (!found) {
fprintf(stderr, "INFO: %s is NOT SUPPORTED\n", name.c_str());
} else { } else {
fprintf(stderr, "INFO: %s is available\n", name.c_str()); fprintf(stderr, "INFO: %s is available\n", name.c_str());
} }