summaryrefslogtreecommitdiff
path: root/src/gallium
diff options
context:
space:
mode:
authorKeith Whitwell <keith@tungstengraphics.com>2008-04-22 15:15:21 +0100
committerKeith Whitwell <keith@tungstengraphics.com>2008-04-22 15:15:57 +0100
commitf9b1d47d652778012fd35552ffc51717ac0b6f79 (patch)
treea730655d34d2852193cb3c9d2f5e4194d973ae62 /src/gallium
parentfd4acd6fdaaad4871327d081f5501680ed9da2ed (diff)
softpipe: do something sensible on an error path, squash warning
Diffstat (limited to 'src/gallium')
-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 34da6356d7..5b63f97997 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;