summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary/util/u_debug.c
diff options
context:
space:
mode:
authorJakob Bornecrantz <[email protected]>2010-05-06 15:42:18 +0100
committerJakob Bornecrantz <[email protected]>2010-05-06 15:45:20 +0100
commitf587615e13cf55504c6060d4621506d65b608774 (patch)
tree6e11913ff86ef2436c94ce5147cc3b03b1867645 /src/gallium/auxiliary/util/u_debug.c
parent7ed2f953c0b109d35ddb4c58effb18bd0fac4592 (diff)
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.
Diffstat (limited to 'src/gallium/auxiliary/util/u_debug.c')
-rw-r--r--src/gallium/auxiliary/util/u_debug.c4
1 files changed, 4 insertions, 0 deletions
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;