mirror of
https://github.com/yuzu-emu/FasTC.git
synced 2024-11-27 17:54:22 +01:00
Partition index does not include the number of partitons.
This commit is contained in:
parent
a8514ba9b3
commit
31e01b7b10
@ -833,9 +833,9 @@ namespace ASTCC {
|
|||||||
uint32 baseCEM = 0;
|
uint32 baseCEM = 0;
|
||||||
if(nPartitions == 1) {
|
if(nPartitions == 1) {
|
||||||
colorEndpointMode[0] = strm.ReadBits(4);
|
colorEndpointMode[0] = strm.ReadBits(4);
|
||||||
|
partitionIndex = 0;
|
||||||
} else {
|
} else {
|
||||||
uint32 restOfPartitionIndex = strm.ReadBits(10);
|
partitionIndex = strm.ReadBits(10);
|
||||||
partitionIndex |= restOfPartitionIndex << 2;
|
|
||||||
baseCEM = strm.ReadBits(6);
|
baseCEM = strm.ReadBits(6);
|
||||||
}
|
}
|
||||||
uint32 baseMode = (baseCEM & 3);
|
uint32 baseMode = (baseCEM & 3);
|
||||||
|
Loading…
Reference in New Issue
Block a user