From 82fc851f329a8968b48724ff73de6c24f75b5a9d Mon Sep 17 00:00:00 2001 From: Philip Rebohle Date: Fri, 23 Feb 2018 15:16:44 +0100 Subject: [PATCH] [d3d11] Fixed CopySubresourceRegion for partial buffer updates Fixes a subtle bug that caused the Fallout 4 menu to render random geometry. --- src/d3d11/d3d11_context.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/d3d11/d3d11_context.cpp b/src/d3d11/d3d11_context.cpp index 0c8353a7..fa73d646 100644 --- a/src/d3d11/d3d11_context.cpp +++ b/src/d3d11/d3d11_context.cpp @@ -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;