https://bugs.winehq.org/show_bug.cgi?id=51999
--- Comment #4 from Henri Verbeet hverbeet@gmail.com --- (In reply to Zebediah Figura from comment #3)
I don't think we need to protect the swapchain desc with a mutex, do we? I'll prepare a patch.
It doesn't necessarily need to be wined3d_mutex_lock()/wined3d_mutex_unlock(), but the assignment to "*desc" in wined3d_swapchain_get_desc() is not atomic.
In this particular case, wined3d_swapchain_state_set_fullscreen() potentially modifies the "output" and "windowed" fields.