From f587615e13cf55504c6060d4621506d65b608774 Mon Sep 17 00:00:00 2001 From: Jakob Bornecrantz Date: Thu, 6 May 2010 15:42:18 +0100 Subject: [PATCH] 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. --- src/gallium/auxiliary/util/u_debug.c | 4 ++++ 1 file changed, 4 insertions(+) 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; -- 2.30.2