1
0
mirror of https://github.com/microsoft/DirectXTex synced 2024-11-22 04:20:07 +00:00

DirectXTex: BC6H/BC7 had subtle signed/unsigned bug that resulted in incorrect decoding in particular edge cases

This commit is contained in:
walbourn_cp 2013-07-11 17:36:24 -07:00
parent b610af415e
commit 3f1f4acfda

View File

@ -65,9 +65,9 @@ const size_t BC6H_MAX_SHAPES = 32;
const size_t BC7_NUM_CHANNELS = 4;
const size_t BC7_MAX_SHAPES = 64;
const uint32_t BC67_WEIGHT_MAX = 64;
const int32_t BC67_WEIGHT_MAX = 64;
const uint32_t BC67_WEIGHT_SHIFT = 6;
const uint32_t BC67_WEIGHT_ROUND = 32;
const int32_t BC67_WEIGHT_ROUND = 32;
extern const int g_aWeights2[4];
extern const int g_aWeights3[8];