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

[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

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