summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/softpipe
diff options
context:
space:
mode:
authorKeith Whitwell <[email protected]>2008-04-22 15:15:21 +0100
committerKeith Whitwell <[email protected]>2008-04-22 15:15:57 +0100
commitf9b1d47d652778012fd35552ffc51717ac0b6f79 (patch)
treea730655d34d2852193cb3c9d2f5e4194d973ae62 /src/gallium/drivers/softpipe
parentfd4acd6fdaaad4871327d081f5501680ed9da2ed (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.c2
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;