From 5490b20769b98af445583eed1fa81bb502539787 Mon Sep 17 00:00:00 2001 From: redstrate <54911369+redstrate@users.noreply.github.com> Date: Tue, 1 Jun 2021 12:11:08 -0400 Subject: [PATCH] Use VK_WHOLE_SIZE when mapping memory --- engine/gfx/vulkan/src/gfx_vulkan.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }