On Fri, 15 Oct 2021 at 14:27, Jan Sikorski jsikorski@codeweavers.com wrote:
dlls/wined3d/cs.c | 23 +++-- dlls/wined3d/device.c | 152 ++++++++++++++++----------------- dlls/wined3d/wined3d_private.h | 17 ++++ 3 files changed, 107 insertions(+), 85 deletions(-)
Is that safe at this stage? For example, calling d3d11_device_context_OMGetRenderTargets() on a deferred context would now use wined3d_mutex_lock()/wined3d_mutex_unlock(), while calling d3d11_device_context_OMSetRenderTargets() for that same context would use the lock specific to that context.