Skip to content

Commit

Permalink
core/image: Flip ASTC decoded images.
Browse files Browse the repository at this point in the history
Fixes: #1020
  • Loading branch information
ben-clayton committed Aug 30, 2017
1 parent 0cab83e commit b9cbd55
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/image/astc/astc.cc
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ extern "C" void decompress_astc(

const float* data = pb.orig_data;
for (uint32_t dy = 0; dy < block_height; dy++) {
uint32_t y = (height-1) - (by*block_height + dy);
uint32_t y = by*block_height + dy;
for (uint32_t dx = 0; dx < block_width; dx++) {
uint32_t x = bx*block_width + dx;
if (x < width && y < height) {
Expand Down
Binary file modified core/image/test_data/ASTC_RGBA_4x4.astc
Binary file not shown.
Binary file modified core/image/test_data/ASTC_RGBA_4x4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit b9cbd55

Please sign in to comment.