minor hack to allow 1D textures to work
authorBrian <brian.paul@tungstengraphics.com>
Tue, 14 Aug 2007 21:20:00 +0000 (15:20 -0600)
committerBrian <brian.paul@tungstengraphics.com>
Tue, 14 Aug 2007 21:20:00 +0000 (15:20 -0600)
src/mesa/pipe/softpipe/sp_tex_sample.c

index 72000f9510416fa1c35f2e51bea5f65651c2a960..03fb539e7d651cca458f2bdaec9f3a000a2499c7 100644 (file)
@@ -711,7 +711,8 @@ sp_get_samples_1d(struct tgsi_sampler *sampler,
                   float rgba[NUM_CHANNELS][QUAD_SIZE])
 {
    static const unsigned faces[4] = {0, 0, 0, 0};
-   sp_get_samples_2d_common(sampler, s, NULL, NULL, lodbias, rgba, faces);
+   static const float tzero[4] = {0, 0, 0, 0};
+   sp_get_samples_2d_common(sampler, s, tzero, NULL, lodbias, rgba, faces);
 }