mirror of
https://github.com/PCSX2/pcsx2.git
synced 2026-11-14 10:10:12 +01:00
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:
1 parent
e8aea86e75
commit
f412b6818e
1 file changed
+1
-1
@@ -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();
|
||||
|
||||
|
||||
Reference in new issue
Block a user