PostProcessing: Display compile errors in OSD

This commit is contained in:
Stenzek 2025-04-06 17:11:04 +10:00
parent 979ad979b9
commit f55961593a
No known key found for this signature in database
1 changed files with 4 additions and 1 deletions

View File

@ -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;
}