mirror of
https://thingvellir.net/git/overte
synced 2025-03-27 23:52:03 +01:00
Fix crash in image baking due to undefined mip format
A recent change caused formatMip to no longer be specified. This causes an issue deeper in the code when generating mips, causing a Q_UNREACHABLE to be hit.
This commit is contained in:
parent
48002ee9fa
commit
569f7dc308
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue