From f55961593a1804a209f72681eb8e4aea4212c001 Mon Sep 17 00:00:00 2001 From: Stenzek Date: Sun, 6 Apr 2025 17:11:04 +1000 Subject: [PATCH] PostProcessing: Display compile errors in OSD --- src/util/postprocessing.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/util/postprocessing.cpp b/src/util/postprocessing.cpp index d24473aa3..aed3cf471 100644 --- a/src/util/postprocessing.cpp +++ b/src/util/postprocessing.cpp @@ -607,7 +607,10 @@ bool PostProcessing::Chain::CheckTargets(GPUTexture::Format target_format, u32 t ERROR_LOG("Failed to compile post-processing shader '{}':\n{}", shader->GetName(), error.GetDescription()); Host::AddIconOSDMessage( "PostProcessLoadFail", ICON_FA_EXCLAMATION_TRIANGLE, - fmt::format("Failed to compile post-processing shader '{}'. Disabling post-processing.", shader->GetName())); + fmt::format(TRANSLATE_FS("PostProcessing", + "Failed to compile post-processing shader '{}'. Disabling post-processing.\n{}"), + shader->GetName(), error.GetDescription()), + Host::OSD_ERROR_DURATION); m_enabled = false; return false; }