From f2a594fad5de59180add789ebebac7ff74f69c32 Mon Sep 17 00:00:00 2001 From: Stenzek Date: Tue, 5 Mar 2019 23:02:40 +1000 Subject: 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 --- Source/Core/VideoBackends/OGL/NativeVertexFormat.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'Source/Core/VideoBackends/OGL/NativeVertexFormat.cpp') diff --git a/Source/Core/VideoBackends/OGL/NativeVertexFormat.cpp b/Source/Core/VideoBackends/OGL/NativeVertexFormat.cpp index 50a6276c72..c95e1f8472 100644 --- a/Source/Core/VideoBackends/OGL/NativeVertexFormat.cpp +++ b/Source/Core/VideoBackends/OGL/NativeVertexFormat.cpp @@ -80,6 +80,7 @@ GLVertexFormat::GLVertexFormat(const PortableVertexDeclaration& vtx_decl) GLVertexFormat::~GLVertexFormat() { + ProgramShaderCache::InvalidateVertexFormatIfBound(VAO); glDeleteVertexArrays(1, &VAO); } } // namespace OGL -- cgit v1.2.3