Merge pull request #13365 from huffman/fix/bake-texture-crash

Fix crash in image baking due to undefined mip format
This commit is contained in:
Stephen Birarda 2018-06-13 10:44:07 -07:00 committed by GitHub
commit 765850eee1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -835,6 +835,7 @@ gpu::TexturePointer TextureUsage::process2DTextureColorFromImage(QImage&& srcIma
} else {
formatGPU = gpu::Element::COLOR_COMPRESSED_BCX_SRGB;
}
formatMip = formatGPU;
} else {
#ifdef USE_GLES
// GLES does not support GL_BGRA