Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package kwin5 for openSUSE:Factory checked 
in at 2021-11-10 21:45:55
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/kwin5 (Old)
 and      /work/SRC/openSUSE:Factory/.kwin5.new.1890 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "kwin5"

Wed Nov 10 21:45:55 2021 rev:154 rq:930139 version:5.23.2

Changes:
--------
--- /work/SRC/openSUSE:Factory/kwin5/kwin5.changes      2021-10-29 
22:33:51.247673529 +0200
+++ /work/SRC/openSUSE:Factory/.kwin5.new.1890/kwin5.changes    2021-11-10 
21:46:01.119800222 +0100
@@ -1,0 +2,6 @@
+Mon Nov  8 09:27:58 UTC 2021 - Fabian Vogt <fab...@ritter-vogt.de>
+
+- Add patch to fix kwin_wayland on GLES:
+  * 0001-platforms-drm-only-use-glDrawBuffer-with-desktop-GL.patch
+
+-------------------------------------------------------------------

New:
----
  0001-platforms-drm-only-use-glDrawBuffer-with-desktop-GL.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ kwin5.spec ++++++
--- /var/tmp/diff_new_pack.EdgUpP/_old  2021-11-10 21:46:01.959800588 +0100
+++ /var/tmp/diff_new_pack.EdgUpP/_new  2021-11-10 21:46:01.963800590 +0100
@@ -39,6 +39,8 @@
 Source1:        kwin-%{version}.tar.xz.sig
 Source2:        plasma.keyring
 %endif
+# PATCH-FIX-UPSTREAM
+Patch1:         0001-platforms-drm-only-use-glDrawBuffer-with-desktop-GL.patch
 # PATCH-FEATURE-OPENSUSE
 Patch101:       0001-Export-consistent-hostname-as-XAUTHLOCALHOSTNAME.patch
 # PATCH-FIX-OPENSUSE

++++++ 0001-platforms-drm-only-use-glDrawBuffer-with-desktop-GL.patch ++++++
>From c4c03e2559f1ecf6f80ae965230bf0a19e17e210 Mon Sep 17 00:00:00 2001
From: Xaver Hugl <xaver.h...@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.


(cherry picked from commit 1626d7a51a0170fac3a54bca2f736eb50147fb77)
---
 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 8e3761eb4..c13c707a7 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;
 }
 
-- 
2.33.1

Reply via email to