From: José Fonseca Date: Mon, 9 Jun 2008 23:52:10 +0000 (+0900) Subject: softpipe: Replace GETENV by debug_get_bool_option. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7d3bab537c7559df7bdc7a4fae42f8218185b9f7;p=mesa.git softpipe: Replace GETENV by debug_get_bool_option. --- diff --git a/src/gallium/drivers/softpipe/sp_context.c b/src/gallium/drivers/softpipe/sp_context.c index 6e14f684f12..626c3a9d4e1 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);