mirror of
https://github.com/stenzek/duckstation.git
synced 2025-06-07 12:05:52 +00:00
GPUThread: Minor logic corrections
This commit is contained in:
parent
b1ce3bf0b1
commit
a0de2febad
@ -494,7 +494,7 @@ void GPUThread::Internal::DoRunIdle()
|
||||
if (!PresentFrameAndRestoreContext())
|
||||
return;
|
||||
|
||||
if (!g_gpu_device->GetMainSwapChain()->IsVSyncModeBlocking())
|
||||
if (g_gpu_device->HasMainSwapChain() && !g_gpu_device->GetMainSwapChain()->IsVSyncModeBlocking())
|
||||
g_gpu_device->GetMainSwapChain()->ThrottlePresentation();
|
||||
}
|
||||
|
||||
@ -548,7 +548,7 @@ void GPUThread::StopFullscreenUI()
|
||||
// Don't need to reconfigure if we already have a system.
|
||||
if (System::IsValid())
|
||||
{
|
||||
RunOnThread([]() { s_state.requested_fullscreen_ui = true; });
|
||||
RunOnThread([]() { s_state.requested_fullscreen_ui = false; });
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -1050,7 +1050,7 @@ void MiniHost::CPUThreadMainLoop()
|
||||
|
||||
void MiniHost::GPUThreadEntryPoint()
|
||||
{
|
||||
Threading::SetNameOfCurrentThread("CPU Thread");
|
||||
Threading::SetNameOfCurrentThread("GPU Thread");
|
||||
GPUThread::Internal::GPUThreadEntryPoint();
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user