mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-27 00:03:37 +01:00
fix #13471
This commit is contained in:
1 parent
350cb11f9a
commit
a8dd3ef553
1 file changed
+2
-2
@@ -210,7 +210,7 @@ static std::string ReadShaderSrc(const std::string &filename) {
|
||||
// Note: called on resize and settings changes.
|
||||
bool PresentationCommon::UpdatePostShader() {
|
||||
std::vector<const ShaderInfo *> 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<const ShaderInfo *> shaderInfo;
|
||||
if (g_Config.vPostShaderNames[0] != "Off") {
|
||||
if (!g_Config.vPostShaderNames.empty() && g_Config.vPostShaderNames[0] != "Off") {
|
||||
ReloadAllPostShaderInfo();
|
||||
shaderInfo = GetFullPostShadersChain(g_Config.vPostShaderNames);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user