Skip to content

Commit

Permalink
Merge pull request #14233 from unknownbrackets/texoffset
Browse files Browse the repository at this point in the history
GPU: Dirty texparams when cropping a self-copy
  • Loading branch information
hrydgard authored Feb 28, 2021
2 parents 91c0ef2 + 7c7b1da commit 08c917f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions GPU/Common/FramebufferManagerCommon.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -901,6 +901,9 @@ void FramebufferManagerCommon::CopyFramebufferForColorTexture(VirtualFramebuffer
x += gstate_c.curTextureXOffset;
y += gstate_c.curTextureYOffset;
}

// We'll have to reapply these next time since we cropped to UV.
gstate_c.Dirty(DIRTY_TEXTURE_PARAMS);
}

if (x < src->drawnWidth && y < src->drawnHeight && w > 0 && h > 0) {
Expand Down

0 comments on commit 08c917f

Please sign in to comment.