summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJakob Bornecrantz <[email protected]>2010-08-05 17:14:38 -0700
committerJakob Bornecrantz <[email protected]>2010-08-05 17:25:13 -0700
commit981c6bc6a5a7dcf941972939c224dfb7f98b904a (patch)
tree6dce3ce296b66185303821af564ccc5da7cf3aa1 /src
parent99611f08497f1567a50ef3e7ea51e63fdf4beb26 (diff)
st/mesa: Only get debug option once
Diffstat (limited to 'src')
-rw-r--r--src/mesa/state_tracker/st_debug.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mesa/state_tracker/st_debug.c b/src/mesa/state_tracker/st_debug.c
index ebf6ec6e7e2..1260fe04b1b 100644
--- a/src/mesa/state_tracker/st_debug.c
+++ b/src/mesa/state_tracker/st_debug.c
@@ -55,6 +55,8 @@ static const struct debug_named_value st_debug_flags[] = {
{ "query", DEBUG_QUERY, NULL },
DEBUG_NAMED_VALUE_END
};
+
+DEBUG_GET_ONCE_FLAGS_OPTION(st_debug, "ST_DEBUG", st_debug_flags, 0);
#endif
@@ -62,7 +64,7 @@ void
st_debug_init(void)
{
#ifdef DEBUG
- ST_DEBUG = debug_get_flags_option("ST_DEBUG", st_debug_flags, 0 );
+ ST_DEBUG = debug_get_option_st_debug();
#endif
}