summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2017-06-10 21:39:16 +0200
committerMarek Olšák <[email protected]>2017-06-22 01:51:02 +0200
commitfd86876fe4abcdd0d7d77f05eb24fadc985f2530 (patch)
tree44ddf6d234a32abb9332c55df95542248dc4807c /src
parentb43c887a9bf1e3fb99b0dc22bfea5db81375a06e (diff)
st/mesa: don't unbind sampler states if none are used
Reviewed-by: Nicolai Hähnle <[email protected]> Reviewed-by: Timothy Arceri <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/mesa/state_tracker/st_atom_sampler.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/state_tracker/st_atom_sampler.c b/src/mesa/state_tracker/st_atom_sampler.c
index 8c121d54071..539b28933b9 100644
--- a/src/mesa/state_tracker/st_atom_sampler.c
+++ b/src/mesa/state_tracker/st_atom_sampler.c
@@ -275,7 +275,7 @@ update_shader_samplers(struct st_context *st,
const GLuint old_max = *num_samplers;
const struct pipe_sampler_state *states[PIPE_MAX_SAMPLERS];
- if (*num_samplers == 0 && samplers_used == 0x0)
+ if (samplers_used == 0x0)
return;
*num_samplers = 0;