summaryrefslogtreecommitdiff
path: root/src/gallium/auxiliary/draw
diff options
context:
space:
mode:
authorJosé Fonseca <jrfonseca@tungstengraphics.com>2008-06-10 08:32:52 +0900
committerJosé Fonseca <jrfonseca@tungstengraphics.com>2008-06-10 08:33:21 +0900
commita70684bf256c3d5bc3a729bf9e9cf1a64cb2064a (patch)
tree86d98344e787689ed4a2b2f6f9b4cd544e2ccf24 /src/gallium/auxiliary/draw
parent5f46bf77af5f49e63976ad51c5b4a7da8490be3e (diff)
gallium: Deprecate GETENV. Replace by debug_get_bool_option.
debug_get_bool_option will interpret "n", "no", "0", "f", or "false" as FALSE; and everything else as TRUE. The default value (used when the variable is not set) is received as a parameter.
Diffstat (limited to 'src/gallium/auxiliary/draw')
-rw-r--r--src/gallium/auxiliary/draw/draw_pt.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/auxiliary/draw/draw_pt.c b/src/gallium/auxiliary/draw/draw_pt.c
index f0d7b51ad7..9140faeea9 100644
--- a/src/gallium/auxiliary/draw/draw_pt.c
+++ b/src/gallium/auxiliary/draw/draw_pt.c
@@ -119,8 +119,8 @@ draw_pt_arrays(struct draw_context *draw,
boolean draw_pt_init( struct draw_context *draw )
{
- draw->pt.test_fse = GETENV("DRAW_FSE") != NULL;
- draw->pt.no_fse = GETENV("DRAW_NO_FSE") != NULL;
+ draw->pt.test_fse = debug_get_bool_option("DRAW_FSE", FALSE);
+ draw->pt.no_fse = debug_get_bool_option("DRAW_NO_FSE", FALSE);
draw->pt.front.vcache = draw_pt_vcache( draw );
if (!draw->pt.front.vcache)