mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-22 13:49:53 -06:00
OGL: Fix binding error on shutdown
This was occurring if the imgui vertex format was bound on shutdown, which is destroyed before the vertex buffers
This commit is contained in:
@ -80,6 +80,7 @@ GLVertexFormat::GLVertexFormat(const PortableVertexDeclaration& vtx_decl)
|
||||
|
||||
GLVertexFormat::~GLVertexFormat()
|
||||
{
|
||||
ProgramShaderCache::InvalidateVertexFormatIfBound(VAO);
|
||||
glDeleteVertexArrays(1, &VAO);
|
||||
}
|
||||
} // namespace OGL
|
||||
|
Reference in New Issue
Block a user