reset lastScreenWidth/Height when deiniting OpenGL

This commit is contained in:
RSDuck 2022-10-15 00:05:26 +02:00
parent 2f9e0a4384
commit 937a778365
1 changed files with 2 additions and 1 deletions

View File

@ -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()