Add braces around std::array intialization to suppress warning

This commit is contained in:
Ryan Huffman 2018-07-24 16:37:34 -07:00
parent 140b9be1c4
commit 26e69de81e

View file

@ -149,10 +149,10 @@ void TextureBaker::processTexture() {
// Compressed KTX
if (_compressionEnabled) {
constexpr std::array<image::BackendTarget, 2> BACKEND_TARGETS {
constexpr std::array<image::BackendTarget, 2> BACKEND_TARGETS {{
image::BackendTarget::GL45,
image::BackendTarget::GLES32
};
}};
for (auto target : BACKEND_TARGETS) {
auto processedTexture = image::processImage(buffer, _textureURL.toString().toStdString(),
ABSOLUTE_MAX_TEXTURE_NUM_PIXELS, _textureType, true,