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/ProgramShaderCache.h | 1 + 1 file changed, 1 insertion(+) (limited to 'Source/Core/VideoBackends/OGL/ProgramShaderCache.h') diff --git a/Source/Core/VideoBackends/OGL/ProgramShaderCache.h b/Source/Core/VideoBackends/OGL/ProgramShaderCache.h index 4aeb40a6c9..bc93445c55 100644 --- a/Source/Core/VideoBackends/OGL/ProgramShaderCache.h +++ b/Source/Core/VideoBackends/OGL/ProgramShaderCache.h @@ -72,6 +72,7 @@ public: static void BindVertexFormat(const GLVertexFormat* vertex_format); static bool IsValidVertexFormatBound(); static void InvalidateVertexFormat(); + static void InvalidateVertexFormatIfBound(GLuint vao); static void InvalidateLastProgram(); static bool CompileComputeShader(SHADER& shader, const std::string& code); -- cgit v1.2.3