don't crash if texture border is used (unsupported for now)

This commit is contained in:
Brian 2007-10-17 10:52:30 -06:00
parent 863cc0af74
commit 4f23468bd0

View file

@ -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);