1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2025-02-20 19:54:19 +01:00

[d3d11] Handle null pointers in CopySubresourceRegion1.

Because of course Marvel's Avengers tries to do this..
This commit is contained in:
Philip Rebohle 2020-09-17 13:36:09 +02:00
parent b21a673a8d
commit ab04f45ea0
No known key found for this signature in database
GPG Key ID: C8CC613427A31C99

View File

@ -329,6 +329,9 @@ namespace dxvk {
UINT CopyFlags) {
D3D10DeviceLock lock = LockContext();
if (!pDstResource || !pSrcResource)
return;
D3D11_RESOURCE_DIMENSION dstResourceDim = D3D11_RESOURCE_DIMENSION_UNKNOWN;
D3D11_RESOURCE_DIMENSION srcResourceDim = D3D11_RESOURCE_DIMENSION_UNKNOWN;