Commit 6f637e7a authored by Bart Ribbers's avatar Bart Ribbers
Browse files

community/kwin: fix using glDrawBuffer on mobile platforms

This resulted in a tty on ARM devices rather than Plasma Mobile
parent a7f55994
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
......@@ -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
"
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment