mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 20:28:04 +02:00
don't crash if texture border is used (unsupported for now)
This commit is contained in:
parent
863cc0af74
commit
4f23468bd0
1 changed files with 3 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue