From 1c9b9ca37a68771a02a98222ba345b553684f6b7 Mon Sep 17 00:00:00 2001 From: Stenzek Date: Thu, 9 Jan 2025 19:34:37 +1000 Subject: [PATCH] GPUThread: Restore context after backend creation Might help with random VRAM loss? I can't seem to reproduce it now.. --- src/core/gpu_thread.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/core/gpu_thread.cpp b/src/core/gpu_thread.cpp index b5be06eecc..c8a0628a65 100644 --- a/src/core/gpu_thread.cpp +++ b/src/core/gpu_thread.cpp @@ -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;