Fix some compiler warnings.

This commit is contained in:
Pavel Krajcevski 2014-03-21 01:14:36 -04:00
parent 037cb0951b
commit e06f60c536

View file

@ -117,12 +117,13 @@ class CompressionMode {
// BPTC block. The mode determines how these parameters will be translated // BPTC block. The mode determines how these parameters will be translated
// into actual bits. // into actual bits.
struct Params { struct Params {
const uint16 m_ShapeIdx;
RGBAVector m_P1[kMaxNumSubsets], m_P2[kMaxNumSubsets]; RGBAVector m_P1[kMaxNumSubsets], m_P2[kMaxNumSubsets];
uint8 m_Indices[kMaxNumSubsets][kMaxNumDataPoints]; uint8 m_Indices[kMaxNumSubsets][kMaxNumDataPoints];
uint8 m_AlphaIndices[kMaxNumDataPoints]; uint8 m_AlphaIndices[kMaxNumDataPoints];
uint8 m_PbitCombo[kMaxNumSubsets]; uint8 m_PbitCombo[kMaxNumSubsets];
int8 m_RotationMode, m_IndexMode; int8 m_RotationMode;
int8 m_IndexMode;
const uint16 m_ShapeIdx;
explicit Params(uint32 shape) explicit Params(uint32 shape)
: m_RotationMode(-1), m_IndexMode(-1), m_ShapeIdx(shape) { : m_RotationMode(-1), m_IndexMode(-1), m_ShapeIdx(shape) {
memset(m_Indices, 0xFF, sizeof(m_Indices)); memset(m_Indices, 0xFF, sizeof(m_Indices));