Clipping: do pixel scaling only when not rendering to a texture

This commit is contained in:
Flyinghead 2018-07-30 18:57:32 +02:00
parent b468ad2717
commit 1533091151
1 changed files with 8 additions and 6 deletions

View File

@ -105,12 +105,14 @@ s32 SetTileClip(u32 val, bool set)
if (csx <= 0 && csy <= 0 && cex >= 640 && cey >= 480)
return 0;
if (set && clip_mode) {
csx /= scale_x;
csy /= scale_y;
cex /= scale_x;
cey /= scale_y;
if (!pvrrc.isRTT) {
if (set && clip_mode)
{
if (!pvrrc.isRTT)
{
csx /= scale_x;
csy /= scale_y;
cex /= scale_x;
cey /= scale_y;
float t = cey;
cey = 480 - csy;
csy = 480 - t;