From: Brian Date: Wed, 17 Oct 2007 16:52:30 +0000 (-0600) Subject: don't crash if texture border is used (unsupported for now) X-Git-Tag: 062012170305~17580^2~390^2~3846 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4f23468bd0d14b8ed687a641003d587b91ad39a7;p=profile%2Fivi%2Fmesa.git don't crash if texture border is used (unsupported for now) --- diff --git a/src/mesa/pipe/softpipe/sp_tex_sample.c b/src/mesa/pipe/softpipe/sp_tex_sample.c index 6ff8411..78f00b2 100644 --- a/src/mesa/pipe/softpipe/sp_tex_sample.c +++ b/src/mesa/pipe/softpipe/sp_tex_sample.c @@ -799,6 +799,9 @@ sp_get_samples(struct tgsi_sampler *sampler, float lodbias, float rgba[NUM_CHANNELS][QUAD_SIZE]) { + if (!sampler->texture) + return; + switch (sampler->texture->target) { case PIPE_TEXTURE_1D: sp_get_samples_1d(sampler, s, t, p, lodbias, rgba);