GS/OpenGL: Fix incorrect VAO cleanup

This wasn't an issue in wx, since the whole context/device gets torn
down and recreated when you pause/unpause, or change settings.

But on Qt it is, since the context/device is preserved for a
faster/lighter settings apply.
This commit is contained in:
Connor McLaughlin 2021-12-18 17:45:13 +10:00 committed by refractionpcsx2
parent e8aea86e75
commit f412b6818e
1 changed files with 1 additions and 1 deletions

View File

@ -103,7 +103,7 @@ GSDeviceOGL::~GSDeviceOGL()
// Clean vertex buffer state
if (m_vertex_array_object)
glDeleteVertexArrays(0, &m_vertex_array_object);
glDeleteVertexArrays(1, &m_vertex_array_object);
m_vertex_stream_buffer.reset();
m_index_stream_buffer.reset();