Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #9646 from PatrickFerry/sw-textureencoder-alignedw…
…idth

SW: Fix alignedWidth in TextureEncoder
  • Loading branch information
leoetlino committed Apr 24, 2021
2 parents 18174d3 + f6a4368 commit 1c6232e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/Core/VideoBackends/Software/TextureEncoder.cpp
Expand Up @@ -221,7 +221,7 @@ static void SetSpans(int sBlkSize, int tBlkSize, s32* tSpan, s32* sBlkSpan, s32*
{
// width is 1 less than the number of pixels of width
u32 width = bpmem.copyTexSrcWH.x >> bpmem.triggerEFBCopy.half_scale;
u32 alignedWidth = Common::AlignUp(width, sBlkSize);
u32 alignedWidth = Common::AlignUp(width + 1, sBlkSize);

u32 readStride = 3 << bpmem.triggerEFBCopy.half_scale;

Expand Down

0 comments on commit 1c6232e

Please sign in to comment.