From 44875cd7d2f31ccc60c244381120b8f190b58b7a Mon Sep 17 00:00:00 2001 From: Alec Miller Date: Sun, 30 May 2021 11:00:54 -0700 Subject: [PATCH] kram - fix Win build that doesn't have ATE --- libkram/kram/KramImage.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libkram/kram/KramImage.cpp b/libkram/kram/KramImage.cpp index a814a6ce..cbbbe803 100644 --- a/libkram/kram/KramImage.cpp +++ b/libkram/kram/KramImage.cpp @@ -461,13 +461,16 @@ bool KramDecoder::decodeBlocks( // copy srcData if using ATE, it says it needs 16-byte aligned data for encode // and assume for decode too. Output texture is already 16-byte aligned. const uint8_t* srcData = blockData; + +#if COMPILE_ATE vector srcTexture; if (useATE && (((uintptr_t)srcData & 15) != 0)) { srcTexture.resize(blockDataSize); memcpy(srcTexture.data(), srcData, blockDataSize); srcData = srcTexture.data(); } - +#endif + Int2 blockDims = blockDimsOfFormat(blockFormat); bool isVerbose = params.isVerbose; const string& swizzleText = params.swizzleText;