From 3426f146f13bc8295964815289426f296f02e3bb Mon Sep 17 00:00:00 2001 From: Brandon Wright Date: Sun, 27 Jan 2019 20:26:56 -0600 Subject: [PATCH] Shaders: Oops. Add scale check to Y, too. --- shaders/glsl.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/shaders/glsl.cpp b/shaders/glsl.cpp index ebde6140..63f2d0eb 100644 --- a/shaders/glsl.cpp +++ b/shaders/glsl.cpp @@ -646,7 +646,10 @@ void GLSLShader::render(GLuint &orig, pass[i].height = viewport_height * pass[i].scale_y; break; default: - pass[i].height = viewport_height; + if (lastpass) + pass[i].height = viewport_height; + else + pass[i].height = pass[i - 1].height * pass[i].scale_y; } bool direct_lastpass = true;