mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-21 05:09:34 -06:00
SW: Fix alignedWidth in TextureEncoder
This was causing issues in Software Renderer. Look at bug 11487
This commit is contained in:

committed by
PatrickFerry

parent
edeb6bcdb7
commit
f6a4368192
@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user