Don't fail when reserving 0 vertices.

This commit is contained in:
Alex 2022-09-26 12:15:11 +03:00
parent cfa26fb706
commit d0b4fb7b32
1 changed files with 3 additions and 0 deletions

View File

@ -68,6 +68,9 @@ void VERTEX_MANAGER::Unmap()
bool VERTEX_MANAGER::Reserve( unsigned int aSize )
{
if( !aSize )
return true;
assert( m_reservedSpace == 0 && m_reserved == nullptr );
// flag to avoid hanging by calling DisplayError too many times: