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:
Pavel Krajcevski 2013-08-29 18:33:56 -04:00
parent b3d7cd7877
commit 73f4992081

View File

@ -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 {