Skip to content
This repository has been archived by the owner on Jul 10, 2023. It is now read-only.

Commit

Permalink
Clipping: do pixel scaling only when not rendering to a texture
Browse files Browse the repository at this point in the history
  • Loading branch information
Flyinghead committed Jul 30, 2018
1 parent b468ad2 commit 1533091
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions core/rend/gles/gldraw.cpp
Expand Up @@ -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;
Expand Down

0 comments on commit 1533091

Please sign in to comment.