diff --git a/PVRTCEncoder/src/Compressor.cpp b/PVRTCEncoder/src/Compressor.cpp index e9f4bb9..b36d787 100644 --- a/PVRTCEncoder/src/Compressor.cpp +++ b/PVRTCEncoder/src/Compressor.cpp @@ -646,18 +646,14 @@ namespace PVRTCC { } Block *pixelBlock = &topLeftBlock; - uint32 pixelBlockIdx = topLeftBlockIdx; if(x > 1) { if(y > 1) { pixelBlock = &bottomRightBlock; - pixelBlockIdx = bottomRightBlockIdx; } else { pixelBlock = &topRightBlock; - pixelBlockIdx = topRightBlockIdx; } } else if(y > 1) { pixelBlock = &bottomLeftBlock; - pixelBlockIdx = bottomLeftBlockIdx; } assert(pixelBlockIdx < blocksW * blocksH);