mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-01-19 05:52:11 +01:00
[d3d11] Skip CopyResource when src and dst resource are the same
This commit is contained in:
parent
c9d61e16d9
commit
de4c88d5aa
@ -511,7 +511,7 @@ namespace dxvk {
|
|||||||
void STDMETHODCALLTYPE D3D11DeviceContext::CopyResource(
|
void STDMETHODCALLTYPE D3D11DeviceContext::CopyResource(
|
||||||
ID3D11Resource* pDstResource,
|
ID3D11Resource* pDstResource,
|
||||||
ID3D11Resource* pSrcResource) {
|
ID3D11Resource* pSrcResource) {
|
||||||
if (!pDstResource || !pSrcResource)
|
if (!pDstResource || !pSrcResource || (pDstResource == pSrcResource))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
D3D11_RESOURCE_DIMENSION dstResourceDim = D3D11_RESOURCE_DIMENSION_UNKNOWN;
|
D3D11_RESOURCE_DIMENSION dstResourceDim = D3D11_RESOURCE_DIMENSION_UNKNOWN;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user