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-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4f23468bd0d14b8ed687a641003d587b91ad39a7;p=mesa.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 6ff84119e5f..78f00b2bf09 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);