From 937a7783653615973705403393b13c09d7ade10d Mon Sep 17 00:00:00 2001 From: RSDuck Date: Sat, 15 Oct 2022 00:05:26 +0200 Subject: [PATCH] reset lastScreenWidth/Height when deiniting OpenGL --- src/frontend/qt_sdl/main.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/frontend/qt_sdl/main.cpp b/src/frontend/qt_sdl/main.cpp index 5e4bd46b..79a15771 100644 --- a/src/frontend/qt_sdl/main.cpp +++ b/src/frontend/qt_sdl/main.cpp @@ -377,7 +377,6 @@ EmuThread::EmuThread(QObject* parent) : QThread(parent) void EmuThread::updateScreenSettings(bool filter, const WindowInfo& windowInfo, int numScreens, int* screenKind, float* screenMatrix) { - printf("update screen setting %d\n", filter); screenSettingsLock.lock(); if (lastScreenWidth != windowInfo.surface_width || lastScreenHeight != windowInfo.surface_height) @@ -482,6 +481,8 @@ void EmuThread::deinitOpenGL() oglContext->DoneCurrent(); oglContext = nullptr; + + lastScreenWidth = lastScreenHeight = -1; } void EmuThread::run()