Fix BGR/RGB bug on GLES

This commit is contained in:
Brad Davis 2018-02-22 14:11:05 -08:00
parent 458b944d2d
commit 49dea19b26

View file

@ -745,7 +745,12 @@ gpu::TexturePointer TextureUsage::process2DTextureColorFromImage(QImage&& srcIma
}
formatMip = formatGPU;
} else {
#ifdef USE_GLES
// GLES does not support GL_BGRA
formatMip = gpu::Element::COLOR_SRGBA_32;
#else
formatMip = gpu::Element::COLOR_SBGRA_32;
#endif
formatGPU = gpu::Element::COLOR_SRGBA_32;
}