mirror of
https://github.com/stenzek/duckstation.git
synced 2025-06-07 12:05:52 +00:00
GPUThread: Fix crash during FSUI language switch
This commit is contained in:
parent
96058f5d7e
commit
03181d1179
@ -537,6 +537,13 @@ void GPUThread::Internal::GPUThreadEntryPoint()
|
|||||||
|
|
||||||
void GPUThread::Internal::DoRunIdle()
|
void GPUThread::Internal::DoRunIdle()
|
||||||
{
|
{
|
||||||
|
if (!g_gpu_device->HasMainSwapChain()) [[unlikely]]
|
||||||
|
{
|
||||||
|
// only happens during language switch
|
||||||
|
Timer::NanoSleep(16 * 1000 * 1000);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (!PresentFrameAndRestoreContext())
|
if (!PresentFrameAndRestoreContext())
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user