lock framebuffer stuff to prevent conflicts when reiniting the core or changing the renderer

This commit is contained in:
Arisotura
2024-10-31 22:51:18 +01:00
parent 9c8f229fed
commit e3e561da3f
4 changed files with 8 additions and 0 deletions

View File

@ -231,6 +231,7 @@ void EmuThread::run()
// update render settings if needed
if (videoSettingsDirty)
{
emuInstance->renderLock.lock();
if (useOpenGL)
{
emuInstance->setVSyncGL(true);
@ -246,6 +247,7 @@ void EmuThread::run()
updateRenderer();
videoSettingsDirty = false;
emuInstance->renderLock.unlock();
}
// process input and hotkeys