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

Commit 04464c7

Browse files
committed
Encoder: correct slice count calculation, fixes #22
1 parent 2886505 commit 04464c7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/HapCompressor.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -622,7 +622,7 @@ Hap_CPrepareToCompressFrames(
622622
glob->sliceCount = 32;
623623

624624
// decrease slice count until it yeilds whole DXT rows
625-
while ((roundUpToMultipleOf4(glob->height) / glob->sliceCount) % 4 != 0)
625+
while ((roundUpToMultipleOf4(glob->height) / 4) % glob->sliceCount != 0)
626626
glob->sliceCount--;
627627

628628
#ifdef DEBUG

0 commit comments

Comments
 (0)