softpipe: do something sensible on an error path, squash warning
authorKeith Whitwell <keith@tungstengraphics.com>
Tue, 22 Apr 2008 14:15:21 +0000 (15:15 +0100)
committerKeith Whitwell <keith@tungstengraphics.com>
Tue, 22 Apr 2008 14:15:57 +0000 (15:15 +0100)
src/gallium/drivers/softpipe/sp_tex_sample.c

index 34da635..5b63f97 100644 (file)
@@ -651,7 +651,9 @@ shadow_compare(uint compare_func,
       k = 0;
       break;
    default:
+      k = 0;
       assert(0);
+      break;
    }
 
    rgba[0][j] = rgba[1][j] = rgba[2][j] = (float) k;