mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2024-11-23 06:15:38 +00:00
GPU: Don't set empty post chain
This commit is contained in:
parent
9b22f0564f
commit
fc40397818
|
@ -44,7 +44,7 @@ bool GPU::Initialize()
|
||||||
g_host_display->SetDisplayLinearFiltering(g_settings.display_linear_filtering);
|
g_host_display->SetDisplayLinearFiltering(g_settings.display_linear_filtering);
|
||||||
g_host_display->SetDisplayIntegerScaling(g_settings.display_integer_scaling);
|
g_host_display->SetDisplayIntegerScaling(g_settings.display_integer_scaling);
|
||||||
g_host_display->SetDisplayStretch(g_settings.display_stretch);
|
g_host_display->SetDisplayStretch(g_settings.display_stretch);
|
||||||
if (g_settings.display_post_processing &&
|
if (g_settings.display_post_processing && !g_settings.display_post_process_chain.empty() &&
|
||||||
!g_host_display->SetPostProcessingChain(g_settings.display_post_process_chain))
|
!g_host_display->SetPostProcessingChain(g_settings.display_post_process_chain))
|
||||||
{
|
{
|
||||||
Host::AddOSDMessage(Host::TranslateStdString("OSDMessage", "Failed to load post processing shader chain."), 20.0f);
|
Host::AddOSDMessage(Host::TranslateStdString("OSDMessage", "Failed to load post processing shader chain."), 20.0f);
|
||||||
|
|
|
@ -3179,7 +3179,7 @@ void System::CheckForSettingsChanges(const Settings& old_settings)
|
||||||
if (g_settings.display_post_processing != old_settings.display_post_processing ||
|
if (g_settings.display_post_processing != old_settings.display_post_processing ||
|
||||||
g_settings.display_post_process_chain != old_settings.display_post_process_chain)
|
g_settings.display_post_process_chain != old_settings.display_post_process_chain)
|
||||||
{
|
{
|
||||||
if (g_settings.display_post_processing)
|
if (g_settings.display_post_processing && !g_settings.display_post_process_chain.empty())
|
||||||
{
|
{
|
||||||
if (!g_host_display->SetPostProcessingChain(g_settings.display_post_process_chain))
|
if (!g_host_display->SetPostProcessingChain(g_settings.display_post_process_chain))
|
||||||
Host::AddOSDMessage(Host::TranslateStdString("OSDMessage", "Failed to load post processing shader chain."),
|
Host::AddOSDMessage(Host::TranslateStdString("OSDMessage", "Failed to load post processing shader chain."),
|
||||||
|
|
Loading…
Reference in a new issue