summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJosé Fonseca <jrfonseca@tungstengraphics.com>2008-06-10 08:52:10 +0900
committerJosé Fonseca <jrfonseca@tungstengraphics.com>2008-06-10 08:52:10 +0900
commit7d3bab537c7559df7bdc7a4fae42f8218185b9f7 (patch)
treed2309912d75ef68237fcad7000394e24a3e592f9 /src
parent3531c5284bb8dc772cd97c6be5bf589c160f9ae8 (diff)
softpipe: Replace GETENV by debug_get_bool_option.
Diffstat (limited to 'src')
-rw-r--r--src/gallium/drivers/softpipe/sp_context.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/drivers/softpipe/sp_context.c b/src/gallium/drivers/softpipe/sp_context.c
index 6e14f684f1..626c3a9d4e 100644
--- a/src/gallium/drivers/softpipe/sp_context.c
+++ b/src/gallium/drivers/softpipe/sp_context.c
@@ -225,10 +225,10 @@ softpipe_create( struct pipe_screen *screen,
if (!softpipe->setup)
goto fail;
- if (GETENV( "SP_NO_RAST" ) != NULL)
+ if (debug_get_bool_option( "SP_NO_RAST", FALSE ))
softpipe->no_rast = TRUE;
- if (GETENV( "SP_NO_VBUF" ) != NULL) {
+ if (debug_get_bool_option( "SP_NO_VBUF", FALSE )) {
/* Deprecated path -- vbuf is the intended interface to the draw module:
*/
draw_set_rasterize_stage(softpipe->draw, softpipe->setup);