aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary/gallivm/lp_bld_sample.c
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2012-07-17 14:41:29 -0600
committerBrian Paul <[email protected]>2012-07-17 14:41:29 -0600
commitc4d2a14d6e98dae29a9a04da122521e25eaf7986 (patch)
tree4b7b1bb0eb6e35605d12cc7f671ed96dcf3e2109 /src/gallium/auxiliary/gallivm/lp_bld_sample.c
parent9d699cd845f3544fa6e149fa4ffb1d131d32b482 (diff)
gallivm: silence uninitialized variable warnings
Diffstat (limited to 'src/gallium/auxiliary/gallivm/lp_bld_sample.c')
-rw-r--r--src/gallium/auxiliary/gallivm/lp_bld_sample.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/gallivm/lp_bld_sample.c b/src/gallium/auxiliary/gallivm/lp_bld_sample.c
index 85211161f3c..1ea59ea222c 100644
--- a/src/gallium/auxiliary/gallivm/lp_bld_sample.c
+++ b/src/gallium/auxiliary/gallivm/lp_bld_sample.c
@@ -214,6 +214,9 @@ lp_build_rho(struct lp_build_sample_context *bld,
if (dims > 2) {
abs_ddx_ddy[1] = lp_build_abs(coord_bld, ddx_ddy[1]);
}
+ else {
+ abs_ddx_ddy[1] = NULL;
+ }
if (dims == 1) {
static const unsigned char swizzle1[] = {