diff options
author | Keith Whitwell <[email protected]> | 2008-04-22 15:15:21 +0100 |
---|---|---|
committer | Keith Whitwell <[email protected]> | 2008-04-22 15:15:57 +0100 |
commit | f9b1d47d652778012fd35552ffc51717ac0b6f79 (patch) | |
tree | a730655d34d2852193cb3c9d2f5e4194d973ae62 /src/gallium/drivers/softpipe | |
parent | fd4acd6fdaaad4871327d081f5501680ed9da2ed (diff) |
softpipe: do something sensible on an error path, squash warning
Diffstat (limited to 'src/gallium/drivers/softpipe')
-rw-r--r-- | src/gallium/drivers/softpipe/sp_tex_sample.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/drivers/softpipe/sp_tex_sample.c b/src/gallium/drivers/softpipe/sp_tex_sample.c index 34da6356d70..5b63f979977 100644 --- a/src/gallium/drivers/softpipe/sp_tex_sample.c +++ b/src/gallium/drivers/softpipe/sp_tex_sample.c @@ -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; |