mirror of
https://github.com/yuzu-emu/FasTC
synced 2024-11-23 15:03:55 +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
1 changed files with 1 additions and 1 deletions
|
@ -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