summaryrefslogtreecommitdiff
path: root/user/qt5-qtdeclarative/endian.patch
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2020-10-01 04:19:34 +0000
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2020-10-01 04:19:34 +0000
commite4e47732892bf914bd2684bc526d1f1751aa2446 (patch)
treee829a0ddd445f60524697d6e8226da2a5017d96b /user/qt5-qtdeclarative/endian.patch
parentc74cfa261ae990f848f79f1d00517d7cbba9395e (diff)
downloadpackages-e4e47732892bf914bd2684bc526d1f1751aa2446.tar.gz
packages-e4e47732892bf914bd2684bc526d1f1751aa2446.tar.bz2
packages-e4e47732892bf914bd2684bc526d1f1751aa2446.tar.xz
packages-e4e47732892bf914bd2684bc526d1f1751aa2446.zip
user/qt5-qtdeclarative: Fix endian
Diffstat (limited to 'user/qt5-qtdeclarative/endian.patch')
-rw-r--r--user/qt5-qtdeclarative/endian.patch31
1 files changed, 31 insertions, 0 deletions
diff --git a/user/qt5-qtdeclarative/endian.patch b/user/qt5-qtdeclarative/endian.patch
new file mode 100644
index 000000000..313e9ca5c
--- /dev/null
+++ b/user/qt5-qtdeclarative/endian.patch
@@ -0,0 +1,31 @@
+From 15b3a8fc8635e04fa7ea1275b910772d8f2820a2 Mon Sep 17 00:00:00 2001
+From: q66 <daniel@octaforge.org>
+Date: Sun, 10 May 2020 02:44:47 +0200
+Subject: [PATCH] always default to qtquick software backend on big endian
+
+the default backend is buggy and breaks rendering of various
+components of KDE Plasma and LXQt, so just default to software
+so the user doesn't have to specify QT_QUICK_BACKEND
+---
+ qtdeclarative/src/quick/scenegraph/qsgcontextplugin.cpp | 5 ++++-
+ 1 file changed, 4 insertions(+), 1 deletion(-)
+
+diff --git qtdeclarative/src/quick/scenegraph/qsgcontextplugin.cpp qtdeclarative/src/quick/scenegraph/qsgcontextplugin.cpp
+index 66add51..a0fdaa2 100644
+--- qtdeclarative/src/quick/scenegraph/qsgcontextplugin.cpp
++++ qtdeclarative/src/quick/scenegraph/qsgcontextplugin.cpp
+@@ -139,7 +139,10 @@ QSGAdaptationBackendData *contextFactory()
+ // If this platform does not support OpenGL, and no backend has been set
+ // default to the software renderer
+ if (requestedBackend.isEmpty()
+- && !QGuiApplicationPrivate::platformIntegration()->hasCapability(QPlatformIntegration::OpenGL)) {
++#if Q_BYTE_ORDER == Q_LITTLE_ENDIAN
++ && !QGuiApplicationPrivate::platformIntegration()->hasCapability(QPlatformIntegration::OpenGL)
++#endif
++ ) {
+ requestedBackend = QString::fromLocal8Bit("software");
+ }
+
+--
+2.25.1
+