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 34da6356d70f82cc6cb6954d1a29d52d110137e6..5b63f9799777ac1997f48d0b4ecdccbaed6769a7 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;