diff --git a/Source/Render/Primitives/RenderVertexPool.cpp b/Source/Render/Primitives/RenderVertexPool.cpp index dc4952b21..dd660cc26 100644 --- a/Source/Render/Primitives/RenderVertexPool.cpp +++ b/Source/Render/Primitives/RenderVertexPool.cpp @@ -67,7 +67,7 @@ RenderVertex* RenderVertexPool::Acquire(unsigned count) { } for (auto& block : this->m_active) { - if (block->capacity() - block->size() >= count) { + if (block->size() + count <= block->capacity()) { const unsigned first = static_cast(block->size()); Append(*block, count); this->m_used += count;