Skip to content

Commit

Permalink
Merge pull request godotengine#100405 from BlueCube3310/bcdec-fix-v200
Browse files Browse the repository at this point in the history
bcdec: Fix logic for detecting incomplete blocks
  • Loading branch information
akien-mga committed Dec 14, 2024
2 parents ffe53cb + 8f9673e commit 863a24a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/bcdec/image_decompress_bcdec.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ static void decompress_image(BCdecFormat format, const void *src, void *dst, con
const uint32_t yblock = MIN(height - y, 4ul); \
const uint32_t xblock = MIN(width - x, 4ul); \
\
const bool incomplete = yblock < 4 && xblock < 4; \
const bool incomplete = yblock < 4 || xblock < 4; \
uint8_t *dec_out = incomplete ? output : &dec_blocks[y * 4 * width + x * color_bytesize]; \
\
func(&src_blocks[src_pos], dec_out, 4 * color_components); \
Expand Down

0 comments on commit 863a24a

Please sign in to comment.