summaryrefslogtreecommitdiffstats
path: root/src/mesa/pipe
diff options
context:
space:
mode:
authorBrian <[email protected]>2007-10-17 10:52:30 -0600
committerBrian <[email protected]>2007-10-17 10:52:30 -0600
commit4f23468bd0d14b8ed687a641003d587b91ad39a7 (patch)
tree84328e1ce312deee9175dcf20a30af0c5311f427 /src/mesa/pipe
parent863cc0af74f8c02711e09cb78bf2c24d8783daae (diff)
don't crash if texture border is used (unsupported for now)
Diffstat (limited to 'src/mesa/pipe')
-rw-r--r--src/mesa/pipe/softpipe/sp_tex_sample.c3
1 files changed, 3 insertions, 0 deletions
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);