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 3a26b2f1510..1871c13ab58 100644 --- a/dlls/wined3d/stateblock.c +++ b/dlls/wined3d/stateblock.c @@ -1649,6 +1649,12 @@ void CDECL wined3d_stateblock_set_render_state(struct wined3d_stateblock *stateb return; } + if (stateblock->type == WINED3D_SBT_PRIMARY && value == stateblock->stateblock_state.rs[state]) + { + TRACE("Ignoring redundant call on a primary stateblock.\n"); + return; + } + stateblock->stateblock_state.rs[state] = value; stateblock->changed.renderState[state >> 5] |= 1u << (state & 0x1f); -- GitLab https://gitlab.winehq.org/wine/wine/-/merge_requests/9814