From 2ff3d17f6792d346c8705c929130c3300cd4abb6 Mon Sep 17 00:00:00 2001 From: Gregory Hainaut Date: Fri, 1 May 2015 14:18:05 +0200 Subject: [PATCH] gsdx-ogl: don't create override option for mandatory extension Ini is alredy big enough --- plugins/GSdx/GLLoader.cpp | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/plugins/GSdx/GLLoader.cpp b/plugins/GSdx/GLLoader.cpp index 1d8a8ce066..4b17971dc3 100644 --- a/plugins/GSdx/GLLoader.cpp +++ b/plugins/GSdx/GLLoader.cpp @@ -346,13 +346,15 @@ namespace GLLoader { 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()); - 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 { fprintf(stderr, "INFO: %s is available\n", name.c_str()); }