From c9d61e16d9c9616543e43202a72714f6c554484e Mon Sep 17 00:00:00 2001 From: Philip Rebohle Date: Fri, 28 Sep 2018 19:39:52 +0200 Subject: [PATCH] [d3d11] Skip ResolveSubresource when dst and src resource are the same Fixes black screen issue in Mortal Kombat X (#670). --- src/d3d11/d3d11_context.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/d3d11/d3d11_context.cpp b/src/d3d11/d3d11_context.cpp index 6b70cc172..735686762 100644 --- a/src/d3d11/d3d11_context.cpp +++ b/src/d3d11/d3d11_context.cpp @@ -1146,7 +1146,10 @@ namespace dxvk { ID3D11Resource* pSrcResource, UINT SrcSubresource, DXGI_FORMAT Format) { - if (!pDstResource || !pSrcResource) + bool isSameSubresource = pDstResource == pSrcResource + && DstSubresource == SrcSubresource; + + if (!pDstResource || !pSrcResource || isSameSubresource) return; D3D11_RESOURCE_DIMENSION dstResourceType;