From fd86876fe4abcdd0d7d77f05eb24fadc985f2530 Mon Sep 17 00:00:00 2001 From: Marek Olšák Date: Sat, 10 Jun 2017 21:39:16 +0200 Subject: st/mesa: don't unbind sampler states if none are used MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Reviewed-by: Nicolai Hähnle Reviewed-by: Timothy Arceri --- src/mesa/state_tracker/st_atom_sampler.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/mesa/state_tracker') 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; -- cgit v1.2.3