diff --git a/GPU/Common/PresentationCommon.cpp b/GPU/Common/PresentationCommon.cpp index f2ce4721da..53c09b9d04 100644 --- a/GPU/Common/PresentationCommon.cpp +++ b/GPU/Common/PresentationCommon.cpp @@ -210,7 +210,7 @@ static std::string ReadShaderSrc(const std::string &filename) { // Note: called on resize and settings changes. bool PresentationCommon::UpdatePostShader() { std::vector shaderInfo; - if (g_Config.vPostShaderNames[0] != "Off") { + if (!g_Config.vPostShaderNames.empty() && g_Config.vPostShaderNames[0] != "Off") { ReloadAllPostShaderInfo(); shaderInfo = GetFullPostShadersChain(g_Config.vPostShaderNames); } @@ -754,7 +754,7 @@ void PresentationCommon::CopyToOutput(OutputFlags flags, int uvRotation, float u void PresentationCommon::CalculateRenderResolution(int *width, int *height, bool *upscaling, bool *ssaa) { // Check if postprocessing shader is doing upscaling as it requires native resolution std::vector shaderInfo; - if (g_Config.vPostShaderNames[0] != "Off") { + if (!g_Config.vPostShaderNames.empty() && g_Config.vPostShaderNames[0] != "Off") { ReloadAllPostShaderInfo(); shaderInfo = GetFullPostShadersChain(g_Config.vPostShaderNames); }