Render-to-texture upscaling must be accounted for when clipping

This commit is contained in:
Flyinghead 2018-09-05 15:07:30 +02:00
parent c43446f355
commit 4a08856775
1 changed files with 7 additions and 0 deletions

View File

@ -123,6 +123,13 @@ s32 SetTileClip(u32 val, bool set)
csy = csy * dc2s_scale_h;
cey = cey * dc2s_scale_h;
}
else
{
csx *= settings.rend.RenderToTextureUpscale;
csy *= settings.rend.RenderToTextureUpscale;
cex *= settings.rend.RenderToTextureUpscale;
cey *= settings.rend.RenderToTextureUpscale;
}
glUniform4f(CurrentShader->pp_ClipTest, csx, csy, cex, cey);
}