diff options
Diffstat (limited to 'src/gallium/drivers/radeonsi/si_descriptors.c')
-rw-r--r-- | src/gallium/drivers/radeonsi/si_descriptors.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/radeonsi/si_descriptors.c b/src/gallium/drivers/radeonsi/si_descriptors.c index 244ba5a7bec..ac40ed27f91 100644 --- a/src/gallium/drivers/radeonsi/si_descriptors.c +++ b/src/gallium/drivers/radeonsi/si_descriptors.c @@ -949,7 +949,7 @@ static void si_bind_sampler_states(struct pipe_context *ctx, struct si_sampler_state **sstates = (struct si_sampler_state**)states; int i; - if (!count || shader >= SI_NUM_SHADERS) + if (!count || shader >= SI_NUM_SHADERS || !sstates) return; for (i = 0; i < count; i++) { |