summaryrefslogtreecommitdiffstats
path: root/src/opengl/qgl.cpp
diff options
context:
space:
mode:
authorOswald Buddenhagen <oswald.buddenhagen@theqtcompany.com>2016-02-17 18:26:21 +0100
committerOswald Buddenhagen <oswald.buddenhagen@theqtcompany.com>2016-02-17 18:26:22 +0100
commit6620045fcaada61a2897195f32c0ee35beebc37b (patch)
tree1a4027d021c10999bc1ff3ad9dc6e17ebb57dfc6 /src/opengl/qgl.cpp
parent9baf824e4df5e9bc58b4fa1dc86e9a2e0d396ebb (diff)
parent0649afd60c4d81fd8a6904d4e32737c647af578f (diff)
Merge dev into 5.7
Diffstat (limited to 'src/opengl/qgl.cpp')
-rw-r--r--src/opengl/qgl.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/opengl/qgl.cpp b/src/opengl/qgl.cpp
index bf0a2f8dd7e..a8409346bad 100644
--- a/src/opengl/qgl.cpp
+++ b/src/opengl/qgl.cpp
@@ -5553,10 +5553,7 @@ QSize QGLTexture::bindCompressedTexturePVR(const char *buf, int len)
// Set the invert flag for the texture. The "vertical flip"
// flag in PVR is the opposite sense to our sense of inversion.
- if ((pvrHeader->flags & PVR_VERTICAL_FLIP) != 0)
- options &= ~QGLContext::InvertedYBindOption;
- else
- options |= QGLContext::InvertedYBindOption;
+ options.setFlag(QGLContext::InvertedYBindOption, !(pvrHeader->flags & PVR_VERTICAL_FLIP));
return QSize(pvrHeader->width, pvrHeader->height);
}