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