From 94955aee81cc06c51db84300f87fb7ee41e62b69 Mon Sep 17 00:00:00 2001 From: Arisotura Date: Sun, 27 Oct 2024 14:51:11 +0100 Subject: [PATCH] fix another OpenGL bug (when closing secondary window) --- src/frontend/qt_sdl/EmuThread.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/frontend/qt_sdl/EmuThread.cpp b/src/frontend/qt_sdl/EmuThread.cpp index 583ed91c..3371a03b 100644 --- a/src/frontend/qt_sdl/EmuThread.cpp +++ b/src/frontend/qt_sdl/EmuThread.cpp @@ -559,7 +559,8 @@ void EmuThread::handleMessages() case msg_DeInitGL: emuInstance->deinitOpenGL(msg.param.value()); - useOpenGL = false; + if (msg.param.value() == 0) + useOpenGL = false; break; case msg_BootROM: