mirror of
https://github.com/yuzu-emu/FasTC
synced 2024-11-23 01:33:36 +00:00
Apparently the block layout is different for ASTC...
This commit is contained in:
parent
374f5375d5
commit
13df3c72c6
1 changed files with 10 additions and 0 deletions
|
@ -1008,6 +1008,16 @@ namespace ASTCC {
|
||||||
blockIdx++;
|
blockIdx++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Flip the image...
|
||||||
|
uint32 *imgStart = reinterpret_cast<uint32 *>(dcj.OutBuf());
|
||||||
|
for(uint32 j = 0; j < (dcj.Height() >> 1); j++) {
|
||||||
|
for(uint32 i = 0; i < dcj.Width(); i++) {
|
||||||
|
const uint32 rowA = j*dcj.Width();
|
||||||
|
const uint32 rowB = (dcj.Height() - j - 1) * dcj.Width();
|
||||||
|
std::swap(imgStart[rowA + i], imgStart[rowB + i]);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace ASTCC
|
} // namespace ASTCC
|
||||||
|
|
Loading…
Reference in a new issue