summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZack Rusin <[email protected]>2007-09-17 13:49:12 -0400
committerZack Rusin <[email protected]>2007-09-18 07:19:12 -0400
commit29789ca026c03dff64b6286e202561faf111fde9 (patch)
tree2df4d27da38dda22ccff4f8435788dc55c3b965c
parent294401814d1d89cc731de1c22c25333aa5d59374 (diff)
Fix a silly bug on setting samplers.
Bind when the currently bound state is /not/ the one we just found/created.
-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 9a728e2d791..994d3691d8b 100644
--- a/src/mesa/state_tracker/st_atom_sampler.c
+++ b/src/mesa/state_tracker/st_atom_sampler.c
@@ -146,7 +146,7 @@ update_samplers(struct st_context *st)
const struct pipe_sampler_state *cached_sampler =
st_cached_sampler_state(st, &sampler);
- if (cached_sampler == st->state.sampler[u]) {
+ if (cached_sampler != st->state.sampler[u]) {
/* state has changed */
st->state.sampler[u] = cached_sampler;
st->pipe->bind_sampler_state(st->pipe, u, cached_sampler);