softpipe: Replace GETENV by debug_get_bool_option.

This commit is contained in:
José Fonseca 2008-06-10 08:52:10 +09:00
parent 3531c5284b
commit 7d3bab537c
1 changed files with 2 additions and 2 deletions

View 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);