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:
parent
33408a8a74
commit
c9d61e16d9
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user