From d9e66dd8a33e8e0c51a80ecdc03350acae11f7eb Mon Sep 17 00:00:00 2001 From: Pavel Krajcevski Date: Wed, 14 Sep 2016 22:41:48 -0700 Subject: [PATCH] Change DXT5 offset from 8 to 16. Fixes #22. --- DXTEncoder/src/Compressor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DXTEncoder/src/Compressor.cpp b/DXTEncoder/src/Compressor.cpp index 725d7fc..cbe1cdb 100644 --- a/DXTEncoder/src/Compressor.cpp +++ b/DXTEncoder/src/Compressor.cpp @@ -88,7 +88,7 @@ namespace DXTC const uint32 kOffset = j*cj.Width() + i; ExtractBlock(inPixels + kOffset, cj.Width(), block); stb_compress_dxt_block(outBuf, block, 1, STB_DXT_DITHER); - outBuf += 8; + outBuf += 16; } startX = 0; }