From 1750b14c2a8a9b9de94e3b740366498dfea760f4 Mon Sep 17 00:00:00 2001 From: Robin Date: Sun, 30 Dec 2018 20:47:04 +0100 Subject: [PATCH] [d3d11] Lock in SynchronizeCsThread This prevents fixes threading issues with D3D10 games when Present() gets called. Fixes #567. --- src/d3d11/d3d11_context_imm.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/d3d11/d3d11_context_imm.cpp b/src/d3d11/d3d11_context_imm.cpp index 6898e81a..4250ecc7 100644 --- a/src/d3d11/d3d11_context_imm.cpp +++ b/src/d3d11/d3d11_context_imm.cpp @@ -547,6 +547,8 @@ namespace dxvk { void D3D11ImmediateContext::SynchronizeCsThread() { + D3D10DeviceLock lock = LockContext(); + // Dispatch current chunk so that all commands // recorded prior to this function will be run FlushCsChunk();