Fix regression in compressed texture decoding.
authorJarkko Pöyry <jpoyry@google.com>
Fri, 22 May 2015 18:42:18 +0000 (11:42 -0700)
committerJarkko Pöyry <jpoyry@google.com>
Fri, 22 May 2015 18:43:32 +0000 (11:43 -0700)
Bug: 21396289
Change-Id: I015967c3ef8e3c9093aec5dd8ebfa5debcd5fe94

framework/common/tcuCompressedTexture.cpp

index 8dae63603593d4908782c33806f69e2c431b471a..2be372e7d561b221b73c039edebb532b2216fdc7 100644 (file)
@@ -374,7 +374,7 @@ inline deUint8 extend5Delta3To8 (deUint8 base5, deUint8 delta3)
 inline deUint16 extend11To16 (deUint16 src)
 {
        DE_ASSERT((src & ~((1<<11)-1)) == 0);
-       return (deUint8)((src << 5) | (src >> 6));
+       return (deUint16)((src << 5) | (src >> 6));
 }
 
 inline deInt16 extend11To16WithSign (deInt16 src)