gl: Fix ring buffer remove() function

- Fixes crash on running a second game in the same session
This commit is contained in:
kd-11 2022-06-02 23:36:31 +03:00 committed by kd-11
parent a421270c19
commit 25c05867d6
1 changed files with 1 additions and 6 deletions

View File

@ -69,12 +69,7 @@ namespace gl
m_size = 0;
}
if (m_id != GL_NONE)
{
glDeleteBuffers(1, &m_id);
m_id = GL_NONE;
}
buffer::remove();
}
void ring_buffer::notify()