mirror of
https://github.com/melonDS-emu/melonDS.git
synced 2025-07-26 15:50: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 (!glContext) return;
|
||||||
if (!glInited) return;
|
if (!glInited) return;
|
||||||
|
|
||||||
|
glContext->MakeCurrent();
|
||||||
|
|
||||||
glDeleteTextures(1, &screenTexture);
|
glDeleteTextures(1, &screenTexture);
|
||||||
|
|
||||||
glDeleteVertexArrays(1, &screenVertexArray);
|
glDeleteVertexArrays(1, &screenVertexArray);
|
||||||
|
Reference in New Issue
Block a user