1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2024-11-30 22:24:15 +01:00

[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

View File

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