From e1dcee37bf656304e68c88b8320e6cdc056a6bb1 Mon Sep 17 00:00:00 2001 From: lizzie Date: Sun, 6 Sep 2026 21:03:44 +0000 Subject: [PATCH] 2026-09-06 21:03:44 Signed-off-by: lizzie --- src/video_core/gpu.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/video_core/gpu.cpp b/src/video_core/gpu.cpp index ff7dafb222..6ff945108d 100644 --- a/src/video_core/gpu.cpp +++ b/src/video_core/gpu.cpp @@ -329,7 +329,6 @@ struct GPU::Impl { const bool is_async; - VideoCommon::GPUThread::ThreadManager gpu_thread; std::unique_ptr cpu_context; Tegra::Control::Scheduler scheduler; @@ -341,6 +340,10 @@ struct GPU::Impl { std::deque request_swap_counters; std::mutex request_swap_mutex; u64 pending_composite_fence{}; + + // Destruction of thread must be done after all (non trivial) + // previous members has been destroyed + VideoCommon::GPUThread::ThreadManager gpu_thread; }; GPU::GPU(Core::System& system, bool is_async, bool use_nvdec)