Merge pull request #502 from sg-brcm/bufferflushfix
Add missing flush in one of the buffer creation helpers.
This commit is contained in:
commit
61524026d6
1 changed files with 3 additions and 0 deletions
|
|
@ -414,6 +414,9 @@ namespace vks
|
||||||
{
|
{
|
||||||
VK_CHECK_RESULT(buffer->map());
|
VK_CHECK_RESULT(buffer->map());
|
||||||
memcpy(buffer->mapped, data, size);
|
memcpy(buffer->mapped, data, size);
|
||||||
|
if ((memoryPropertyFlags & VK_MEMORY_PROPERTY_HOST_COHERENT_BIT) == 0)
|
||||||
|
buffer->flush();
|
||||||
|
|
||||||
buffer->unmap();
|
buffer->unmap();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue