Clipping: do pixel scaling only when not rendering to a texture
This commit is contained in:
parent
b468ad2717
commit
1533091151
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue