mirror of
https://github.com/overte-org/overte.git
synced 2025-08-08 08:17:35 +02:00
Fix BGR/RGB bug on GLES
This commit is contained in:
parent
458b944d2d
commit
49dea19b26
1 changed files with 5 additions and 0 deletions
|
@ -745,7 +745,12 @@ gpu::TexturePointer TextureUsage::process2DTextureColorFromImage(QImage&& srcIma
|
||||||
}
|
}
|
||||||
formatMip = formatGPU;
|
formatMip = formatGPU;
|
||||||
} else {
|
} else {
|
||||||
|
#ifdef USE_GLES
|
||||||
|
// GLES does not support GL_BGRA
|
||||||
|
formatMip = gpu::Element::COLOR_SRGBA_32;
|
||||||
|
#else
|
||||||
formatMip = gpu::Element::COLOR_SBGRA_32;
|
formatMip = gpu::Element::COLOR_SBGRA_32;
|
||||||
|
#endif
|
||||||
formatGPU = gpu::Element::COLOR_SRGBA_32;
|
formatGPU = gpu::Element::COLOR_SRGBA_32;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue