OpenGLRenderer: Fix buffer destruction not removing VAOs referencing it

This commit is contained in:
Jérôme Leclercq
2021-10-19 14:48:53 +02:00
parent 7e65f4b544
commit 6162a805e4
3 changed files with 4 additions and 2 deletions

View File

@@ -54,7 +54,7 @@ namespace Nz::GL
return *(it->second);
}
void OpenGLVaoCache::NotifyBufferDestruction(GLuint buffer)
void OpenGLVaoCache::NotifyBufferDestruction(GLuint buffer) const
{
for (auto it = m_vertexArrays.begin(); it != m_vertexArrays.end();)
{