Shaders: Oops. Add scale check to Y, too.

This commit is contained in:
Brandon Wright 2019-01-27 20:26:56 -06:00
parent 9b67d0ad8b
commit 3426f146f1
1 changed files with 4 additions and 1 deletions

View File

@ -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;