[arch-commits] Commit in deepin-qt5integration/trunk (qt5.9.patch)
Felix Yan
felixonmars at archlinux.org
Fri Jun 2 08:14:54 UTC 2017
Date: Friday, June 2, 2017 @ 08:14:53
Author: felixonmars
Revision: 232966
upgpkg: deepin-qt5integration 0.1.9-1
add missing patch
Added:
deepin-qt5integration/trunk/qt5.9.patch
-------------+
qt5.9.patch | 42 ++++++++++++++++++++++++++++++++++++++++++
1 file changed, 42 insertions(+)
Added: qt5.9.patch
===================================================================
--- qt5.9.patch (rev 0)
+++ qt5.9.patch 2017-06-02 08:14:53 UTC (rev 232966)
@@ -0,0 +1,42 @@
+diff --git a/platformplugin/dplatformbackingstore.cpp b/platformplugin/dplatformbackingstore.cpp
+index 7f0db30..31cefef 100644
+--- a/platformplugin/dplatformbackingstore.cpp
++++ b/platformplugin/dplatformbackingstore.cpp
+@@ -32,7 +32,13 @@
+ #include <QtGui/QOpenGLShaderProgram>
+ #include <QtGui/QOpenGLContext>
+ #include <QtGui/QOpenGLFunctions>
++
++#if QT_VERSION < QT_VERSION_CHECK(5, 9, 0)
+ #include <QtGui/private/qopengltextureblitter_p.h>
++#else
++#include <QtGui/qopengltextureblitter.h>
++#endif
++
+ #include <QtGui/qpa/qplatformgraphicsbuffer.h>
+ #include <QtGui/qpa/qplatformgraphicsbufferhelper.h>
+ #endif
+@@ -804,7 +810,11 @@ void DPlatformBackingStore::composeAndFlushHelper(QWindow *window, const QRegion
+
+ if (textureId) {
+ if (m_needsSwizzle)
++#if QT_VERSION < QT_VERSION_CHECK(5, 9, 0)
+ m_blitter->setSwizzleRB(true);
++#else
++ m_blitter->setRedBlueSwizzle(true);
++#endif
+ // The backingstore is for the entire tlw.
+ // In case of native children offset tells the position relative to the tlw.
+ // reverse translate backward for widgets
+@@ -814,7 +824,11 @@ void DPlatformBackingStore::composeAndFlushHelper(QWindow *window, const QRegion
+ origin);
+ m_blitter->blit(textureId, QMatrix4x4(), source);
+ if (m_needsSwizzle)
++#if QT_VERSION < QT_VERSION_CHECK(5, 9, 0)
+ m_blitter->setSwizzleRB(false);
++#else
++ m_blitter->setRedBlueSwizzle(false);
++#endif
+ }
+
+ // Textures for renderToTexture widgets that have WA_AlwaysStackOnTop set.
More information about the arch-commits
mailing list