diff options
author | Bart Ribbers <bribbers@disroot.org> | 2021-10-27 12:07:50 +0200 |
---|---|---|
committer | Bart Ribbers <bribbers@disroot.org> | 2021-10-27 12:07:52 +0200 |
commit | 6f637e7a9bdf46a464e3395889164a932b6813dc (patch) | |
tree | 6b2b98e93c77a8e96549707857a6b9c9a08364e4 /community | |
parent | a7f55994b5f611bfa4831bdd93ccb6d507d7bdd1 (diff) | |
download | aports-6f637e7a9bdf46a464e3395889164a932b6813dc.tar.gz aports-6f637e7a9bdf46a464e3395889164a932b6813dc.tar.bz2 aports-6f637e7a9bdf46a464e3395889164a932b6813dc.tar.xz |
community/kwin: fix using glDrawBuffer on mobile platforms
This resulted in a tty on ARM devices rather than Plasma Mobile
Diffstat (limited to 'community')
-rw-r--r-- | community/kwin/0001-only-use-gldrawbuffer-with-desktop-gl.patch | 29 | ||||
-rw-r--r-- | community/kwin/APKBUILD | 7 |
2 files changed, 34 insertions, 2 deletions
diff --git a/community/kwin/0001-only-use-gldrawbuffer-with-desktop-gl.patch b/community/kwin/0001-only-use-gldrawbuffer-with-desktop-gl.patch new file mode 100644 index 0000000000..0714d37f61 --- /dev/null +++ b/community/kwin/0001-only-use-gldrawbuffer-with-desktop-gl.patch @@ -0,0 +1,29 @@ +From 1626d7a51a0170fac3a54bca2f736eb50147fb77 Mon Sep 17 00:00:00 2001 +From: Xaver Hugl <xaver.hugl@gmail.com> +Date: Wed, 27 Oct 2021 11:45:06 +0200 +Subject: [PATCH] platforms/drm: only use glDrawBuffer with desktop GL + +That function is not available with GLES, and calling it is only necessary +for NVidia. +--- + src/plugins/platforms/drm/egl_gbm_backend.cpp | 4 +++- + 1 file changed, 3 insertions(+), 1 deletion(-) + +diff --git a/src/plugins/platforms/drm/egl_gbm_backend.cpp b/src/plugins/platforms/drm/egl_gbm_backend.cpp +index 776967c9a8..0ab9b6d592 100644 +--- a/src/plugins/platforms/drm/egl_gbm_backend.cpp ++++ b/src/plugins/platforms/drm/egl_gbm_backend.cpp +@@ -359,7 +359,9 @@ bool EglGbmBackend::makeContextCurrent(const Output::RenderData &render) const + qCCritical(KWIN_DRM) << "eglMakeCurrent failed:" << getEglErrorString(); + return false; + } +- glDrawBuffer(GL_BACK); ++ if (!GLPlatform::instance()->isGLES()) { ++ glDrawBuffer(GL_BACK); ++ } + return true; + } + +-- +GitLab + diff --git a/community/kwin/APKBUILD b/community/kwin/APKBUILD index c8daa1b0df..6d8865d49e 100644 --- a/community/kwin/APKBUILD +++ b/community/kwin/APKBUILD @@ -2,7 +2,7 @@ # Maintainer: Bart Ribbers <bribbers@disroot.org> pkgname=kwin pkgver=5.23.2 -pkgrel=0 +pkgrel=1 pkgdesc="An easy to use, but flexible, composited Window Manager" # armhf blocked by qt5-qtdeclarative # s390x, mips64 and riscv64 blocked by kscreenlocker @@ -78,7 +78,9 @@ case "$pkgver" in *.90*) _rel=unstable;; *) _rel=stable;; esac -source="https://download.kde.org/$_rel/plasma/$pkgver/kwin-$pkgver.tar.xz" +source="https://download.kde.org/$_rel/plasma/$pkgver/kwin-$pkgver.tar.xz + 0001-only-use-gldrawbuffer-with-desktop-gl.patch + " subpackages="$pkgname-dbg $pkgname-dev $pkgname-doc $pkgname-lang" options="!check" # Broken @@ -108,4 +110,5 @@ package() { } sha512sums=" d7062504d26a3fe6db5d8d34486d450035613a8d5f986a074aeda8e22acde06e2dbfde17daccd8199a2f3a7855d1e891c92af7478150e7f320b592143aca4ebd kwin-5.23.2.tar.xz +98860ebc4ab4102240d32260ae88a9e1d27bc8470da7c6c786e3e7808ea9c518297c41e43745d62da79827b92a388e636c6f5c0dedf8dc238e74da0f4cbbd055 0001-only-use-gldrawbuffer-with-desktop-gl.patch " |