mirror of
https://github.com/yuzu-emu/FasTC.git
synced 2024-11-28 05:54:23 +01:00
If we want a color channel with zero depth then it should default to full intensity, but we will remember that there is zero depth there.
This commit is contained in:
parent
b3d7cd7877
commit
73f4992081
@ -85,7 +85,9 @@ namespace PVRTCC {
|
||||
assert(depth <= 8);
|
||||
|
||||
channel = 0;
|
||||
if(depth + bitIdx < 8) {
|
||||
if(0 == depth) {
|
||||
channel = 0xFF;
|
||||
} else if(depth + bitIdx < 8) {
|
||||
channel = bits[byteIdx] & ((1 << depth) - 1);
|
||||
bitIdx += depth;
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user