call MakeCurrent() before deiniting GL stuff (to avoid deiniting on the wrong context)

This commit is contained in:
Arisotura
2025-06-28 22:55:48 +02:00
parent 4aaea218c1
commit f352cf612a

View File

@ -1020,6 +1020,8 @@ void ScreenPanelGL::deinitOpenGL()
if (!glContext) return;
if (!glInited) return;
glContext->MakeCurrent();
glDeleteTextures(1, &screenTexture);
glDeleteVertexArrays(1, &screenVertexArray);