From 94b2060979f7eeaf56a9c8b08a045370a14755fa Mon Sep 17 00:00:00 2001 From: Stenzek Date: Sun, 9 Feb 2025 13:22:03 +1000 Subject: [PATCH] GPU: Clear display texture on fatal error --- 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 81e4a5490..93c849796 100644 --- a/src/core/gpu_thread.cpp +++ b/src/core/gpu_thread.cpp @@ -1139,6 +1139,7 @@ void GPUThread::ReportFatalErrorAndShutdown(std::string_view reason) // replace the renderer with a dummy/null backend, so that all commands get dropped ERROR_LOG("Switching to null renderer: {}", reason); + s_state.gpu_presenter->ClearDisplayTexture(); s_state.gpu_backend.reset(); s_state.gpu_backend = GPUBackend::CreateNullBackend(*s_state.gpu_presenter); if (!s_state.gpu_backend->Initialize(false, nullptr)) [[unlikely]]