diff options
author | Koen Kooi <koen@openembedded.org> | 2010-01-04 16:38:25 +0100 |
---|---|---|
committer | Koen Kooi <koen@openembedded.org> | 2010-01-05 10:07:58 +0100 |
commit | 4a3a725cc558b2841959c84529389c97587eae45 (patch) | |
tree | 8985a4997feccd22c565c4ebb6f3b92d9b563570 /recipes/qt4/qt-4.6.0/0993-Fix-upside-down-PVR-compressed-textures.patch | |
parent | 1029524234e0d6da592b946803cbd09b882acf2e (diff) |
qt 4.6.0: backport a few patches from git, mainly QGL related
Diffstat (limited to 'recipes/qt4/qt-4.6.0/0993-Fix-upside-down-PVR-compressed-textures.patch')
-rw-r--r-- | recipes/qt4/qt-4.6.0/0993-Fix-upside-down-PVR-compressed-textures.patch | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/recipes/qt4/qt-4.6.0/0993-Fix-upside-down-PVR-compressed-textures.patch b/recipes/qt4/qt-4.6.0/0993-Fix-upside-down-PVR-compressed-textures.patch new file mode 100644 index 0000000000..70aeb7bbf0 --- /dev/null +++ b/recipes/qt4/qt-4.6.0/0993-Fix-upside-down-PVR-compressed-textures.patch @@ -0,0 +1,36 @@ +From 62fac41edfff5e42e4c3308376cb08e5d9a10afe Mon Sep 17 00:00:00 2001 +From: Rhys Weatherley <rhys.weatherley@nokia.com> +Date: Wed, 9 Dec 2009 09:10:11 +1000 +Subject: [PATCH 0993/1244] Fix upside down PVR compressed textures. + +The "vertical flip" flag in the PVR format is the inverse of the +"inverted y" state that we use in Qt. + +Reviewed-by: trustme +--- + src/opengl/qgl.cpp | 7 ++++--- + 1 files changed, 4 insertions(+), 3 deletions(-) + +diff --git a/src/opengl/qgl.cpp b/src/opengl/qgl.cpp +index 967ba48..8003a29 100644 +--- a/src/opengl/qgl.cpp ++++ b/src/opengl/qgl.cpp +@@ -5363,11 +5363,12 @@ QSize QGLTexture::bindCompressedTexturePVR(const char *buf, int len) + // Restore the default pixel alignment for later texture uploads. + glPixelStorei(GL_UNPACK_ALIGNMENT, 4); + +- // Set the invert flag for the texture. ++ // 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; ++ else ++ options |= QGLContext::InvertedYBindOption; + + return QSize(pvrHeader->width, pvrHeader->height); + } +-- +1.6.5 + |