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

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

This commit is contained in:
Philip Rebohle 2018-09-28 19:40:53 +02:00
parent c9d61e16d9
commit de4c88d5aa
No known key found for this signature in database
GPG Key ID: C8CC613427A31C99

View File

@ -511,7 +511,7 @@ namespace dxvk {
void STDMETHODCALLTYPE D3D11DeviceContext::CopyResource(
ID3D11Resource* pDstResource,
ID3D11Resource* pSrcResource) {
if (!pDstResource || !pSrcResource)
if (!pDstResource || !pSrcResource || (pDstResource == pSrcResource))
return;
D3D11_RESOURCE_DIMENSION dstResourceDim = D3D11_RESOURCE_DIMENSION_UNKNOWN;