mirror of
https://github.com/melonDS-emu/melonDS.git
synced 2025-07-24 14:49:53 -06:00
lock framebuffer stuff to prevent conflicts when reiniting the core or changing the renderer
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user