mirror of
https://github.com/skyline-emu/skyline.git
synced 2024-12-24 18:11:50 +01: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