1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2025-01-18 20:52:10 +01:00

[d3d11] Skip ResolveSubresource when dst and src resource are the same

Fixes black screen issue in Mortal Kombat X (#670).
This commit is contained in:
Philip Rebohle 2018-09-28 19:39:52 +02:00
parent 33408a8a74
commit c9d61e16d9
No known key found for this signature in database
GPG Key ID: C8CC613427A31C99

View File

@ -1146,7 +1146,10 @@ namespace dxvk {
ID3D11Resource* pSrcResource, ID3D11Resource* pSrcResource,
UINT SrcSubresource, UINT SrcSubresource,
DXGI_FORMAT Format) { DXGI_FORMAT Format) {
if (!pDstResource || !pSrcResource) bool isSameSubresource = pDstResource == pSrcResource
&& DstSubresource == SrcSubresource;
if (!pDstResource || !pSrcResource || isSameSubresource)
return; return;
D3D11_RESOURCE_DIMENSION dstResourceType; D3D11_RESOURCE_DIMENSION dstResourceType;