Use VK_WHOLE_SIZE when mapping memory
This commit is contained in:
parent
58d1868fbe
commit
5490b20769
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Reference in a new issue