From f412b6818e4f4b99646ff2c434817abcd96a63a0 Mon Sep 17 00:00:00 2001 From: Connor McLaughlin Date: Sat, 18 Dec 2021 17:45:13 +1000 Subject: [PATCH] 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. --- pcsx2/GS/Renderers/OpenGL/GSDeviceOGL.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pcsx2/GS/Renderers/OpenGL/GSDeviceOGL.cpp b/pcsx2/GS/Renderers/OpenGL/GSDeviceOGL.cpp index 49658eec1f..1d3708c3e0 100644 --- a/pcsx2/GS/Renderers/OpenGL/GSDeviceOGL.cpp +++ b/pcsx2/GS/Renderers/OpenGL/GSDeviceOGL.cpp @@ -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();