mirror of
https://github.com/stenzek/duckstation.git
synced 2025-06-06 03:25:36 +00:00
PostProcessing: Display compile errors in OSD
This commit is contained in:
parent
979ad979b9
commit
f55961593a
@ -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());
|
ERROR_LOG("Failed to compile post-processing shader '{}':\n{}", shader->GetName(), error.GetDescription());
|
||||||
Host::AddIconOSDMessage(
|
Host::AddIconOSDMessage(
|
||||||
"PostProcessLoadFail", ICON_FA_EXCLAMATION_TRIANGLE,
|
"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;
|
m_enabled = false;
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user