[dxvk] Fixed incorrect image packing behaviour

This commit is contained in:
Philip Rebohle 2018-01-21 00:04:17 +01:00
parent 6ab7897127
commit aaffc8e26f
No known key found for this signature in database
GPG Key ID: C8CC613427A31C99
1 changed files with 2 additions and 2 deletions

View File

@ -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);