From 31e01b7b10d11e708a6875dd28b0afd8794686ad Mon Sep 17 00:00:00 2001 From: Pavel Krajcevski Date: Wed, 14 May 2014 13:29:12 +0200 Subject: [PATCH] Partition index does not include the number of partitons. --- ASTCEncoder/src/Decompressor.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ASTCEncoder/src/Decompressor.cpp b/ASTCEncoder/src/Decompressor.cpp index 624157f..eda8fc3 100644 --- a/ASTCEncoder/src/Decompressor.cpp +++ b/ASTCEncoder/src/Decompressor.cpp @@ -833,9 +833,9 @@ namespace ASTCC { uint32 baseCEM = 0; if(nPartitions == 1) { colorEndpointMode[0] = strm.ReadBits(4); + partitionIndex = 0; } else { - uint32 restOfPartitionIndex = strm.ReadBits(10); - partitionIndex |= restOfPartitionIndex << 2; + partitionIndex = strm.ReadBits(10); baseCEM = strm.ReadBits(6); } uint32 baseMode = (baseCEM & 3);