mirror of
https://github.com/ZDoom/gzdoom.git
synced 2025-02-20 19:12:07 +00:00
Fix "out of memory" errors when the vulkan backend is asked to create zero byte sized buffers
This commit is contained in:
parent
25350109e8
commit
b59554f319
1 changed files with 1 additions and 1 deletions
|
@ -571,7 +571,7 @@ inline BufferBuilder::BufferBuilder()
|
|||
|
||||
inline void BufferBuilder::setSize(size_t size)
|
||||
{
|
||||
bufferInfo.size = size;
|
||||
bufferInfo.size = std::max(size, (size_t)16);
|
||||
}
|
||||
|
||||
inline void BufferBuilder::setUsage(VkBufferUsageFlags bufferUsage, VmaMemoryUsage memoryUsage, VmaAllocationCreateFlags allocFlags)
|
||||
|
|
Loading…
Reference in a new issue