From: Brian Date: Tue, 14 Aug 2007 21:20:00 +0000 (-0600) Subject: minor hack to allow 1D textures to work X-Git-Tag: android-x86-1.6~16^2~1465^2~390^2~4323 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=d16b4bc32a731cb6ae320e8c187af3bc751d4138;p=android-x86%2Fexternal-mesa.git minor hack to allow 1D textures to work --- diff --git a/src/mesa/pipe/softpipe/sp_tex_sample.c b/src/mesa/pipe/softpipe/sp_tex_sample.c index 72000f95104..03fb539e7d6 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); }