mirror of
https://github.com/skyline-emu/skyline.git
synced 2024-12-28 09:55:29 +03:00
Account for layerCount in SynchronizeGuestWithBuffer staging buffer size
This commit is contained in:
parent
5b97b87503
commit
1609fd2a32
@ -519,7 +519,7 @@ namespace skyline::gpu {
|
||||
WaitOnFence();
|
||||
|
||||
if (tiling == vk::ImageTiling::eOptimal || !std::holds_alternative<memory::Image>(backing)) {
|
||||
auto size{format->GetSize(dimensions)};
|
||||
auto size{format->GetSize(dimensions) * layerCount};
|
||||
auto stagingBuffer{gpu.memory.AllocateStagingBuffer(size)};
|
||||
|
||||
CopyIntoStagingBuffer(commandBuffer, stagingBuffer);
|
||||
|
Loading…
Reference in New Issue
Block a user