From 1e0c5db3a9decd57d0aa87f147a70638174b9b81 Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Sat, 16 May 2020 10:21:00 -0700 Subject: [PATCH] GPU: Keep last output size in chained postshaders. --- GPU/Common/PresentationCommon.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/GPU/Common/PresentationCommon.cpp b/GPU/Common/PresentationCommon.cpp index c263b6ab07..f26da4e031 100644 --- a/GPU/Common/PresentationCommon.cpp +++ b/GPU/Common/PresentationCommon.cpp @@ -237,6 +237,10 @@ bool PresentationCommon::BuildPostShader(const ShaderInfo *shaderInfo, const Sha int nextWidth = renderWidth_; int nextHeight = renderHeight_; + // When chaining, we use the previous resolution as a base, rather than the render resolution. + if (!postShaderFramebuffers_.empty()) + draw_->GetFramebufferDimensions(postShaderFramebuffers_.back(), &nextWidth, &nextHeight); + if (next && next->isUpscalingFilter) { // Force 1x for this shader, so the next can upscale. const bool isPortrait = g_Config.IsPortrait();