softpipe: don't calc det if NO_RAST set
authorKeith Whitwell <keith@tungstengraphics.com>
Thu, 8 May 2008 21:07:52 +0000 (22:07 +0100)
committerKeith Whitwell <keith@tungstengraphics.com>
Thu, 8 May 2008 21:14:59 +0000 (22:14 +0100)
src/gallium/drivers/softpipe/sp_setup.c

index df7be01fcd5bdec1b16685750e90a4626e1d6db1..5370d85275f6c95bb66c20f53c6497fbe3202762 100644 (file)
@@ -717,7 +717,7 @@ void setup_tri( struct setup_context *setup,
                 const float (*v1)[4],
                 const float (*v2)[4] )
 {
-   float det = calc_det(v0, v1, v2);
+   float det;
 
 #if DEBUG_VERTS
    debug_printf("Setup triangle:\n");
@@ -728,7 +728,8 @@ void setup_tri( struct setup_context *setup,
 
    if (setup->softpipe->no_rast)
       return;
-
+   
+   det = calc_det(v0, v1, v2);
    /*
    debug_printf("%s\n", __FUNCTION__ );
    */