Disable invalidating buffer on CACHED_CONTAINER::Clear(). OpenGL context is not available when the method is called, so it does not work.
This commit is contained in:
parent
031fbb4630
commit
a3a9641ae2
|
@ -204,10 +204,6 @@ void CACHED_CONTAINER::Delete( VERTEX_ITEM* aItem )
|
|||
|
||||
void CACHED_CONTAINER::Clear()
|
||||
{
|
||||
Map();
|
||||
glInvalidateBufferData( GL_ARRAY_BUFFER );
|
||||
Unmap();
|
||||
|
||||
m_freeSpace = m_currentSize;
|
||||
m_failed = false;
|
||||
|
||||
|
|
Loading…
Reference in New Issue