diff options
author | michal <michal@michal-laptop.(none)> | 2007-08-16 12:13:37 +0100 |
---|---|---|
committer | michal <michal@michal-laptop.(none)> | 2007-08-16 12:13:37 +0100 |
commit | 830169414e2886c2224d62a1a601cc951dcd4b08 (patch) | |
tree | 820ddf63b67a0b402ce9ea738e72a15962ce9297 | |
parent | 9982044a8de79d927a2921126c1684e04f18c170 (diff) |
Silence warnings.
-rwxr-xr-x[-rw-r--r--] | src/mesa/pipe/softpipe/sp_quad_blend.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/mesa/pipe/softpipe/sp_quad_blend.c b/src/mesa/pipe/softpipe/sp_quad_blend.c index 7e8851d214..e5335f3b19 100644..100755 --- a/src/mesa/pipe/softpipe/sp_quad_blend.c +++ b/src/mesa/pipe/softpipe/sp_quad_blend.c @@ -221,20 +221,20 @@ blend_quad(struct quad_stage *qs, struct quad_header *quad) { float inv_comp[4]; /* R */ - VEC4_SCALAR(inv_comp, 1.0 - softpipe->blend_color.color[0]); + VEC4_SCALAR(inv_comp, 1.0f - softpipe->blend_color.color[0]); VEC4_MUL(source[0], quad->outputs.color[0], inv_comp); /* G */ - VEC4_SCALAR(inv_comp, 1.0 - softpipe->blend_color.color[1]); + VEC4_SCALAR(inv_comp, 1.0f - softpipe->blend_color.color[1]); VEC4_MUL(source[1], quad->outputs.color[1], inv_comp); /* B */ - VEC4_SCALAR(inv_comp, 1.0 - softpipe->blend_color.color[2]); + VEC4_SCALAR(inv_comp, 1.0f - softpipe->blend_color.color[2]); VEC4_MUL(source[2], quad->outputs.color[2], inv_comp); } break; case PIPE_BLENDFACTOR_INV_CONST_ALPHA: { - float alpha[4], inv_alpha[4]; - VEC4_SCALAR(alpha, 1.0 - softpipe->blend_color.color[3]); + float inv_alpha[4]; + VEC4_SCALAR(inv_alpha, 1.0f - softpipe->blend_color.color[3]); VEC4_MUL(source[0], quad->outputs.color[0], inv_alpha); /* R */ VEC4_MUL(source[1], quad->outputs.color[1], inv_alpha); /* G */ VEC4_MUL(source[2], quad->outputs.color[2], inv_alpha); /* B */ |