Skip to content
This repository was archived by the owner on Oct 31, 2022. It is now read-only.

Commit 4d7bc13

Browse files
committed
Fix Hap Q encoding of odd-height images which repeated the last row of pixels
1 parent b1a3d4b commit 4d7bc13

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/YCoCgDXT.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,9 +180,9 @@ static void ExtractBlock( const byte *inPtr, const int stride, const int widthRe
180180

181181
// Set up offset for next texel row source (keep existing if we are at the end)
182182
pBlock32 +=4;
183-
hIndex++;
184183
if(hIndex < (heightRemain-1)) {
185184
pSource32 +=(stride >> 2);
185+
hIndex++;
186186
}
187187
}
188188
}

0 commit comments

Comments
 (0)