mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
GPU: Keep last output size in chained postshaders.
This commit is contained in:
parent
978aa89768
commit
1e0c5db3a9
1 changed files with 4 additions and 0 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Reference in a new issue