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:
parent
6ab7897127
commit
aaffc8e26f
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user