From aaffc8e26f2d0b3522ba2d42cc464188fc87d1a4 Mon Sep 17 00:00:00 2001 From: Philip Rebohle Date: Sun, 21 Jan 2018 00:04:17 +0100 Subject: [PATCH] [dxvk] Fixed incorrect image packing behaviour --- src/dxvk/dxvk_util.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/dxvk/dxvk_util.cpp b/src/dxvk/dxvk_util.cpp index e6c7f204..d3ffe726 100644 --- a/src/dxvk/dxvk_util.cpp +++ b/src/dxvk/dxvk_util.cpp @@ -48,8 +48,8 @@ namespace dxvk::util { const VkDeviceSize bytesPerLayer = blockCount.height * bytesPerRow; const VkDeviceSize bytesTotal = blockCount.depth * bytesPerLayer; - const bool directCopy = (bytesPerRow == pitchPerRow ) || (blockCount.height == 1) - && (bytesPerLayer == pitchPerLayer) || (blockCount.depth == 1); + const bool directCopy = ((bytesPerRow == pitchPerRow ) || (blockCount.height == 1)) + && ((bytesPerLayer == pitchPerLayer) || (blockCount.depth == 1)); if (directCopy) { std::memcpy(dstData, srcData, bytesTotal);