QPkmHandler: make const what it never modified
Pick-to: 6.3 6.2 5.15 Change-Id: I0bda0d93ebe60d4923f3e9eb059cddb61192b1b5 Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io>
This commit is contained in:
parent
f482e2a456
commit
b5c4d1f50b
@ -57,7 +57,7 @@ struct PkmType
|
|||||||
quint32 bytesPerBlock;
|
quint32 bytesPerBlock;
|
||||||
};
|
};
|
||||||
|
|
||||||
static PkmType typeMap[5] = {
|
static constexpr PkmType typeMap[5] = {
|
||||||
{ 0x8D64, 8 }, // GL_ETC1_RGB8_OES
|
{ 0x8D64, 8 }, // GL_ETC1_RGB8_OES
|
||||||
{ 0x9274, 8 }, // GL_COMPRESSED_RGB8_ETC2
|
{ 0x9274, 8 }, // GL_COMPRESSED_RGB8_ETC2
|
||||||
{ 0, 0 }, // unused (obsolete)
|
{ 0, 0 }, // unused (obsolete)
|
||||||
|
Loading…
Reference in New Issue
Block a user