GameSettings: Fix PGXP culling disabled message showing when PGXP disabled

This commit is contained in:
Connor McLaughlin 2020-11-30 01:15:04 +10:00
parent b695d3c6ce
commit c3932e945d

View file

@ -649,7 +649,7 @@ void Entry::ApplySettings(bool display_osd_messages) const
if (HasTrait(Trait::DisablePGXPCulling)) if (HasTrait(Trait::DisablePGXPCulling))
{ {
if (display_osd_messages && g_settings.gpu_pgxp_culling) if (display_osd_messages && g_settings.gpu_pgxp_enable && g_settings.gpu_pgxp_culling)
{ {
g_host_interface->AddOSDMessage( g_host_interface->AddOSDMessage(
g_host_interface->TranslateStdString("OSDMessage", "PGXP culling disabled by game settings."), osd_duration); g_host_interface->TranslateStdString("OSDMessage", "PGXP culling disabled by game settings."), osd_duration);
@ -660,7 +660,7 @@ void Entry::ApplySettings(bool display_osd_messages) const
if (HasTrait(Trait::DisablePGXPTextureCorrection)) if (HasTrait(Trait::DisablePGXPTextureCorrection))
{ {
if (display_osd_messages && g_settings.gpu_pgxp_culling && g_settings.gpu_pgxp_texture_correction) if (display_osd_messages && g_settings.gpu_pgxp_enable && g_settings.gpu_pgxp_texture_correction)
{ {
g_host_interface->AddOSDMessage( g_host_interface->AddOSDMessage(
g_host_interface->TranslateStdString("OSDMessage", "PGXP texture correction disabled by game settings."), g_host_interface->TranslateStdString("OSDMessage", "PGXP texture correction disabled by game settings."),