diff --git a/common/gal/opengl/vertex_manager.cpp b/common/gal/opengl/vertex_manager.cpp index 418d9b0645..30a02664da 100644 --- a/common/gal/opengl/vertex_manager.cpp +++ b/common/gal/opengl/vertex_manager.cpp @@ -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: