mirror of
https://github.com/yuzu-emu/FasTC.git
synced 2025-01-08 06:15:31 +00:00
Bugfix
The bug was that bitIdx was not being taken into account when we realized that there was enough pixel depth to stay within the current byte when reading pixel values.
This commit is contained in:
parent
1cc8f57538
commit
ab0dbbfa6e
|
@ -88,7 +88,7 @@ namespace PVRTCC {
|
|||
if(0 == depth) {
|
||||
channel = 0xFF;
|
||||
} else if(depth + bitIdx < 8) {
|
||||
channel = bits[byteIdx] & ((1 << depth) - 1);
|
||||
channel = (bits[byteIdx] >> bitIdx) & ((1 << depth) - 1);
|
||||
bitIdx += depth;
|
||||
} else {
|
||||
const uint32 numLowBits = 8 - bitIdx;
|
||||
|
|
Loading…
Reference in a new issue