mirror of
https://github.com/melonDS-emu/melonDS.git
synced 2025-07-25 07:10:00 -06:00
call MakeCurrent() before deiniting GL stuff (to avoid deiniting on the wrong context)
This commit is contained in:
@ -1020,6 +1020,8 @@ void ScreenPanelGL::deinitOpenGL()
|
||||
if (!glContext) return;
|
||||
if (!glInited) return;
|
||||
|
||||
glContext->MakeCurrent();
|
||||
|
||||
glDeleteTextures(1, &screenTexture);
|
||||
|
||||
glDeleteVertexArrays(1, &screenVertexArray);
|
||||
|
Reference in New Issue
Block a user