From: Elizabeth Figura <zfigura@codeweavers.com> Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=59013 --- dlls/wined3d/stateblock.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/dlls/wined3d/stateblock.c b/dlls/wined3d/stateblock.c index c5ee846f3be..e0b487c867e 100644 --- a/dlls/wined3d/stateblock.c +++ b/dlls/wined3d/stateblock.c @@ -1799,6 +1799,12 @@ void CDECL wined3d_stateblock_set_texture_stage_state(struct wined3d_stateblock return; } + if (stateblock->type == WINED3D_SBT_PRIMARY && value == stateblock->stateblock_state.texture_states[stage][state]) + { + TRACE("Ignoring redundant call on a primary stateblock.\n"); + return; + } + stateblock->stateblock_state.texture_states[stage][state] = value; stateblock->changed.textureState[stage] |= 1u << state; -- GitLab https://gitlab.winehq.org/wine/wine/-/merge_requests/9814