From 4f23468bd0d14b8ed687a641003d587b91ad39a7 Mon Sep 17 00:00:00 2001 From: Brian Date: Wed, 17 Oct 2007 10:52:30 -0600 Subject: [PATCH] don't crash if texture border is used (unsupported for now) --- src/mesa/pipe/softpipe/sp_tex_sample.c | 3 +++ 1 file changed, 3 insertions(+) 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); -- 2.7.4