GPUThread: Minor logic corrections

This commit is contained in:
Stenzek 2025-04-14 21:40:19 +10:00
parent b1ce3bf0b1
commit a0de2febad
No known key found for this signature in database
2 changed files with 3 additions and 3 deletions

View File

@ -494,7 +494,7 @@ void GPUThread::Internal::DoRunIdle()
if (!PresentFrameAndRestoreContext()) if (!PresentFrameAndRestoreContext())
return; return;
if (!g_gpu_device->GetMainSwapChain()->IsVSyncModeBlocking()) if (g_gpu_device->HasMainSwapChain() && !g_gpu_device->GetMainSwapChain()->IsVSyncModeBlocking())
g_gpu_device->GetMainSwapChain()->ThrottlePresentation(); g_gpu_device->GetMainSwapChain()->ThrottlePresentation();
} }
@ -548,7 +548,7 @@ void GPUThread::StopFullscreenUI()
// Don't need to reconfigure if we already have a system. // Don't need to reconfigure if we already have a system.
if (System::IsValid()) if (System::IsValid())
{ {
RunOnThread([]() { s_state.requested_fullscreen_ui = true; }); RunOnThread([]() { s_state.requested_fullscreen_ui = false; });
return; return;
} }

View File

@ -1050,7 +1050,7 @@ void MiniHost::CPUThreadMainLoop()
void MiniHost::GPUThreadEntryPoint() void MiniHost::GPUThreadEntryPoint()
{ {
Threading::SetNameOfCurrentThread("CPU Thread"); Threading::SetNameOfCurrentThread("GPU Thread");
GPUThread::Internal::GPUThreadEntryPoint(); GPUThread::Internal::GPUThreadEntryPoint();
} }