[dxvk] Fix broken layer handling in packImageData

This commit is contained in:
Philip Rebohle 2022-09-05 03:39:04 +02:00
parent d42df37257
commit 957d99ed8d
1 changed files with 3 additions and 3 deletions

View File

@ -66,10 +66,10 @@ namespace dxvk::util {
uint32_t imageLayers,
const DxvkFormatInfo* formatInfo,
VkImageAspectFlags aspectMask) {
for (uint32_t i = 0; i < imageLayers; i++) {
auto dstData = reinterpret_cast< char*>(dstBytes);
auto srcData = reinterpret_cast<const char*>(srcBytes);
auto dstData = reinterpret_cast< char*>(dstBytes);
auto srcData = reinterpret_cast<const char*>(srcBytes);
for (uint32_t k = 0; k < imageLayers; k++) {
for (auto aspects = aspectMask; aspects; ) {
auto aspect = vk::getNextAspect(aspects);
auto extent = imageExtent;