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:
Stenzek
2019-03-05 23:02:40 +10:00
parent 9577d0641b
commit f2a594fad5
3 changed files with 8 additions and 0 deletions

View File

@ -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);