From: Jakob Bornecrantz Date: Thu, 6 May 2010 14:42:18 +0000 (+0100) Subject: util: Recognize FALSE and F in debug_get_bool_option X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f587615e13cf55504c6060d4621506d65b608774;p=mesa.git util: Recognize FALSE and F in debug_get_bool_option Concidering that we actually print FALSE when displaying the option we should also accept that value. --- diff --git a/src/gallium/auxiliary/util/u_debug.c b/src/gallium/auxiliary/util/u_debug.c index 0de38e791d6..86db2c2e4b4 100644 --- a/src/gallium/auxiliary/util/u_debug.c +++ b/src/gallium/auxiliary/util/u_debug.c @@ -123,8 +123,12 @@ debug_get_bool_option(const char *name, boolean dfault) result = FALSE; else if(!util_strcmp(str, "f")) result = FALSE; + else if(!util_strcmp(str, "F")) + result = FALSE; else if(!util_strcmp(str, "false")) result = FALSE; + else if(!util_strcmp(str, "FALSE")) + result = FALSE; else result = TRUE;