From 669b2c093464893581649250b799459af2bb4479 Mon Sep 17 00:00:00 2001 From: Pavel Krajcevski Date: Wed, 4 Sep 2013 20:18:43 -0400 Subject: [PATCH] Reverse the order for modulating our bits... I'm not convinced that this is right --- PVRTCEncoder/src/Decompressor.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/PVRTCEncoder/src/Decompressor.cpp b/PVRTCEncoder/src/Decompressor.cpp index ae39e24..2f7db28 100644 --- a/PVRTCEncoder/src/Decompressor.cpp +++ b/PVRTCEncoder/src/Decompressor.cpp @@ -108,6 +108,8 @@ namespace PVRTCC { } } + assert(blocks.size() > 0); + // Extract the endpoints into A and B images Image imgA(blocksH, blocksW); Image imgB(blocksH, blocksW); @@ -181,7 +183,7 @@ namespace PVRTCC { } } else { - const uint8 lerpVals[4] = { 0, 3, 5, 8 }; + const uint8 lerpVals[4] = { 8, 5, 3, 0 }; const uint8 lerpVal = lerpVals[b.GetLerpValue(texelIndex)]; for(uint32 c = 0; c < 4; c++) {