summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian <brian.paul@tungstengraphics.com>2007-08-14 15:20:00 -0600
committerBrian <brian.paul@tungstengraphics.com>2007-08-14 15:20:00 -0600
commitd16b4bc32a731cb6ae320e8c187af3bc751d4138 (patch)
tree4b179a59165acf16670a5199e638f2f6a422a592
parentbfcc337e386902712de49d43308167bc79c9e709 (diff)
minor hack to allow 1D textures to work
-rw-r--r--src/mesa/pipe/softpipe/sp_tex_sample.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mesa/pipe/softpipe/sp_tex_sample.c b/src/mesa/pipe/softpipe/sp_tex_sample.c
index 72000f9510..03fb539e7d 100644
--- a/src/mesa/pipe/softpipe/sp_tex_sample.c
+++ b/src/mesa/pipe/softpipe/sp_tex_sample.c
@@ -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);
}