mirror of
https://github.com/doitsujin/dxvk.git
synced 2024-12-01 07:24:12 +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:
parent
dbf3fd768d
commit
82fc851f32
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user