mirror of
https://github.com/EduApps-CDG/OpenDX
synced 2024-12-30 09:45:37 +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 bytesPerLayer = blockCount.height * bytesPerRow;
|
||||||
const VkDeviceSize bytesTotal = blockCount.depth * bytesPerLayer;
|
const VkDeviceSize bytesTotal = blockCount.depth * bytesPerLayer;
|
||||||
|
|
||||||
const bool directCopy = (bytesPerRow == pitchPerRow ) || (blockCount.height == 1)
|
const bool directCopy = ((bytesPerRow == pitchPerRow ) || (blockCount.height == 1))
|
||||||
&& (bytesPerLayer == pitchPerLayer) || (blockCount.depth == 1);
|
&& ((bytesPerLayer == pitchPerLayer) || (blockCount.depth == 1));
|
||||||
|
|
||||||
if (directCopy) {
|
if (directCopy) {
|
||||||
std::memcpy(dstData, srcData, bytesTotal);
|
std::memcpy(dstData, srcData, bytesTotal);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user