st/mesa: don't unbind sampler states if none are used

Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
This commit is contained in:
Marek Olšák
2017-06-10 21:39:16 +02:00
parent b43c887a9b
commit fd86876fe4
+1 -1
View File
@@ -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;