mirror of
https://thingvellir.net/git/overte
synced 2025-03-27 23:52:03 +01:00
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:
commit
765850eee1
1 changed files with 1 additions and 0 deletions
|
@ -835,6 +835,7 @@ gpu::TexturePointer TextureUsage::process2DTextureColorFromImage(QImage&& srcIma
|
||||||
} else {
|
} else {
|
||||||
formatGPU = gpu::Element::COLOR_COMPRESSED_BCX_SRGB;
|
formatGPU = gpu::Element::COLOR_COMPRESSED_BCX_SRGB;
|
||||||
}
|
}
|
||||||
|
formatMip = formatGPU;
|
||||||
} else {
|
} else {
|
||||||
#ifdef USE_GLES
|
#ifdef USE_GLES
|
||||||
// GLES does not support GL_BGRA
|
// GLES does not support GL_BGRA
|
||||||
|
|
Loading…
Reference in a new issue