mirror of
https://github.com/yuzu-emu/FasTC.git
synced 2025-01-09 02:25:36 +00: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);
|
assert(depth <= 8);
|
||||||
|
|
||||||
channel = 0;
|
channel = 0;
|
||||||
if(depth + bitIdx < 8) {
|
if(0 == depth) {
|
||||||
|
channel = 0xFF;
|
||||||
|
} else if(depth + bitIdx < 8) {
|
||||||
channel = bits[byteIdx] & ((1 << depth) - 1);
|
channel = bits[byteIdx] & ((1 << depth) - 1);
|
||||||
bitIdx += depth;
|
bitIdx += depth;
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue