llvmpipe: Silence uninitialized variable warning.
authorVinson Lee <vlee@vmware.com>
Sat, 2 Jan 2010 00:03:53 +0000 (16:03 -0800)
committerVinson Lee <vlee@vmware.com>
Sat, 2 Jan 2010 00:03:53 +0000 (16:03 -0800)
src/gallium/drivers/llvmpipe/lp_tex_sample_c.c

index a1365a045f178db64eb36a66c560a02e1d334d53..699394c0deb817baafd1483fe2075d6c88cd841b 100644 (file)
@@ -1085,7 +1085,7 @@ lp_get_samples_2d_common(struct tgsi_sampler *tgsi_sampler,
    const struct pipe_sampler_state *sampler = samp->sampler;
    unsigned level0, level1, j, imgFilter;
    int width, height;
-   float levelBlend;
+   float levelBlend = 0.0F;
 
    choose_mipmap_levels(tgsi_sampler, s, t, p, 
                         lodbias,