GPUThread: Restore context after backend creation

Might help with random VRAM loss? I can't seem to reproduce it now..
This commit is contained in:
Stenzek 2025-01-09 19:34:37 +10:00
parent 40589dcd93
commit 1c9b9ca37a
No known key found for this signature in database
1 changed files with 1 additions and 0 deletions

View File

@ -816,6 +816,7 @@ bool GPUThread::CreateGPUBackendOnThread(GPURenderer renderer, bool upload_vram,
g_gpu_device->SetGPUTimingEnabled(g_gpu_settings.display_show_gpu_usage);
PostProcessing::Initialize();
ImGuiManager::UpdateDebugWindowConfig();
Internal::RestoreContextAfterPresent();
SetRunIdleReason(RunIdleReason::NoGPUBackend, false);
std::atomic_thread_fence(std::memory_order_release);
return true;