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:
Maciej Suminski 2016-05-02 16:12:18 +02:00
parent 031fbb4630
commit a3a9641ae2
1 changed files with 0 additions and 4 deletions

View File

@ -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;