Fix big-endian build of qopengltextureuploader
Badly placed endif and lacking a break statement. Change-Id: Id6a3fb13b40e8ae8029e74f7668bafb6e0b9dd06 Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
This commit is contained in:
parent
ee51a2c4dc
commit
991b251e39
@ -140,9 +140,12 @@ qsizetype QOpenGLTextureUploader::textureImage(GLenum target, const QImage &imag
|
||||
// No support for direct ARGB32 upload.
|
||||
break;
|
||||
}
|
||||
#else
|
||||
// Big endian requires GL_UNSIGNED_INT_8_8_8_8_REV for ARGB to match BGRA
|
||||
break;
|
||||
#endif
|
||||
}
|
||||
targetFormat = image.format();
|
||||
#endif
|
||||
break;
|
||||
case QImage::Format_BGR30:
|
||||
case QImage::Format_A2BGR30_Premultiplied:
|
||||
|
Loading…
Reference in New Issue
Block a user