From 82296ac5b85e3a294239661336d3dcc99c62bc72 Mon Sep 17 00:00:00 2001 From: Robin Kertels Date: Mon, 28 Feb 2022 22:28:22 +0100 Subject: [PATCH] Use buffer size instead of allocation size for Buffer constructor Fixes a validation error. --- app/src/main/cpp/skyline/gpu/memory_manager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/cpp/skyline/gpu/memory_manager.cpp b/app/src/main/cpp/skyline/gpu/memory_manager.cpp index 9f3a6d10..3030d52c 100644 --- a/app/src/main/cpp/skyline/gpu/memory_manager.cpp +++ b/app/src/main/cpp/skyline/gpu/memory_manager.cpp @@ -114,7 +114,7 @@ namespace skyline::gpu::memory { VmaAllocationInfo allocationInfo; ThrowOnFail(vmaCreateBuffer(vmaAllocator, &static_cast(bufferCreateInfo), &allocationCreateInfo, &buffer, &allocation, &allocationInfo)); - return Buffer(reinterpret_cast(allocationInfo.pMappedData), allocationInfo.size, vmaAllocator, buffer, allocation); + return Buffer(reinterpret_cast(allocationInfo.pMappedData), size, vmaAllocator, buffer, allocation); } Image MemoryManager::AllocateImage(const vk::ImageCreateInfo &createInfo) {