Change DXT5 offset from 8 to 16. Fixes #22.

This commit is contained in:
Pavel Krajcevski 2016-09-14 22:41:48 -07:00
parent e2b741d977
commit d9e66dd8a3

View file

@ -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;
}