mirror of
https://github.com/stenzek/duckstation.git
synced 2025-06-06 03:25:36 +00:00
GPU: Clear display texture on fatal error
This commit is contained in:
parent
06b02183cb
commit
94b2060979
@ -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]]
|
||||
|
Loading…
x
Reference in New Issue
Block a user