diff options
author | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2018-08-22 10:11:13 +0200 |
---|---|---|
committer | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2018-08-22 14:32:45 +0000 |
commit | 991b251e391c0cbfaab7bd26dc5c344965a903d8 (patch) | |
tree | 46afcc4acbf6abe125d01519eda4283c0db63242 /src | |
parent | ee51a2c4dc8ed5522cc2477c397de08ee9872829 (diff) |
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>
Diffstat (limited to 'src')
-rw-r--r-- | src/gui/opengl/qopengltextureuploader.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
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: |