From 1f45a49102537c33a11a4beda7dcf87de1d958ca Mon Sep 17 00:00:00 2001 From: Pavel Krajcevski Date: Thu, 25 Sep 2014 19:10:30 -0400 Subject: [PATCH] Caught small bug --- ASTCEncoder/src/Decompressor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ASTCEncoder/src/Decompressor.cpp b/ASTCEncoder/src/Decompressor.cpp index 5b2f1cf..a1ef779 100644 --- a/ASTCEncoder/src/Decompressor.cpp +++ b/ASTCEncoder/src/Decompressor.cpp @@ -184,7 +184,7 @@ namespace ASTCC { // Determine R uint32 R = !!(modeBits & 0x10); - if(layout < 4) { + if(layout < 5) { R |= (modeBits & 0x3) << 1; } else { R |= (modeBits & 0xC) >> 1;