mirror of
https://github.com/overte-org/overte.git
synced 2025-08-06 12:35:13 +02: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 {
|
} 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