Add missing flush in one of the buffer creation helpers.
Change-Id: I65356b64c227fd96a324349f583d183ce7e075de
This commit is contained in:
parent
1f42dbda61
commit
737e4d6bb1
1 changed files with 3 additions and 0 deletions
|
|
@ -414,6 +414,9 @@ namespace vks
|
|||
{
|
||||
VK_CHECK_RESULT(buffer->map());
|
||||
memcpy(buffer->mapped, data, size);
|
||||
if ((memoryPropertyFlags & VK_MEMORY_PROPERTY_HOST_COHERENT_BIT) == 0)
|
||||
buffer->flush();
|
||||
|
||||
buffer->unmap();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue