mirror of
https://github.com/microsoft/DirectXTex
synced 2024-11-21 20:10:05 +00:00
DirectXTex: BC6H/BC7 had subtle signed/unsigned bug that resulted in incorrect decoding in particular edge cases
This commit is contained in:
parent
b610af415e
commit
3f1f4acfda
@ -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];
|
||||
|
Loading…
Reference in New Issue
Block a user