General code cleanup

Fixes #442, Closes #379
This commit is contained in:
saschawillems 2018-04-13 18:06:30 +02:00
parent bfb4b7607a
commit 1b8343d67b
19 changed files with 7 additions and 45 deletions

View file

@ -437,7 +437,7 @@ namespace vks
void copyBuffer(vks::Buffer *src, vks::Buffer *dst, VkQueue queue, VkBufferCopy *copyRegion = nullptr)
{
assert(dst->size <= src->size);
assert(src->buffer && src->buffer);
assert(src->buffer);
VkCommandBuffer copyCmd = createCommandBuffer(VK_COMMAND_BUFFER_LEVEL_PRIMARY, true);
VkBufferCopy bufferCopy{};
if (copyRegion == nullptr)