From 991b251e391c0cbfaab7bd26dc5c344965a903d8 Mon Sep 17 00:00:00 2001 From: Allan Sandfeld Jensen Date: Wed, 22 Aug 2018 10:11:13 +0200 Subject: Fix big-endian build of qopengltextureuploader Badly placed endif and lacking a break statement. Change-Id: Id6a3fb13b40e8ae8029e74f7668bafb6e0b9dd06 Reviewed-by: Shawn Rutledge --- src/gui/opengl/qopengltextureuploader.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/gui/opengl/qopengltextureuploader.cpp b/src/gui/opengl/qopengltextureuploader.cpp index fc449d8090..1147c81471 100644 --- a/src/gui/opengl/qopengltextureuploader.cpp +++ b/src/gui/opengl/qopengltextureuploader.cpp @@ -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: -- cgit v1.2.3