[d3d11] Fixed CopySubresourceRegion for partial buffer updates

Fixes a subtle bug that caused the Fallout 4 menu to render random
geometry.
This commit is contained in:
Philip Rebohle 2018-02-23 15:16:44 +01:00
parent dbf3fd768d
commit 82fc851f32
No known key found for this signature in database
GPG Key ID: C8CC613427A31C99
1 changed files with 1 additions and 1 deletions

View File

@ -261,7 +261,7 @@ namespace dxvk {
VkDeviceSize srcLength = srcBuffer.length();
if (pSrcBox != nullptr) {
if (pSrcBox->right > pSrcBox->left)
if (pSrcBox->left > pSrcBox->right)
return; // no-op, but legal
srcOffset = pSrcBox->left;