diff --git a/engine/gfx/vulkan/src/gfx_vulkan.cpp b/engine/gfx/vulkan/src/gfx_vulkan.cpp index 448c14c..63364fd 100755 --- a/engine/gfx/vulkan/src/gfx_vulkan.cpp +++ b/engine/gfx/vulkan/src/gfx_vulkan.cpp @@ -330,7 +330,7 @@ void* GFXVulkan::get_buffer_contents(GFXBuffer* buffer) { GFXVulkanBuffer* vulkanBuffer = (GFXVulkanBuffer*)buffer; void* mapped_data; - vkMapMemory(device, vulkanBuffer->memory, 0, vulkanBuffer->size, 0, &mapped_data); + vkMapMemory(device, vulkanBuffer->memory, 0, VK_WHOLE_SIZE, 0, &mapped_data); return mapped_data; }