mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 09:28:07 +02:00
Fix a silly bug on setting samplers.
Bind when the currently bound state is /not/ the one we just found/created.
This commit is contained in:
parent
294401814d
commit
29789ca026
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue