mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-06-19 19:00:09 +02: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:
@ -494,6 +494,12 @@ void ProgramShaderCache::InvalidateVertexFormat()
|
||||
s_last_VAO = 0;
|
||||
}
|
||||
|
||||
void ProgramShaderCache::InvalidateVertexFormatIfBound(GLuint vao)
|
||||
{
|
||||
if (s_last_VAO == vao)
|
||||
s_last_VAO = 0;
|
||||
}
|
||||
|
||||
void ProgramShaderCache::InvalidateLastProgram()
|
||||
{
|
||||
CurrentProgram = 0;
|
||||
|
Reference in New Issue
Block a user