softpipe: Replace GETENV by debug_get_bool_option.
authorJosé Fonseca <jrfonseca@tungstengraphics.com>
Mon, 9 Jun 2008 23:52:10 +0000 (08:52 +0900)
committerJosé Fonseca <jrfonseca@tungstengraphics.com>
Mon, 9 Jun 2008 23:52:10 +0000 (08:52 +0900)
src/gallium/drivers/softpipe/sp_context.c

index 6e14f684f1254c4210a65dce6c796265599971c6..626c3a9d4e1834aae76bffaa5f67fa11fb582a6e 100644 (file)
@@ -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);