Gentoo Archives: gentoo-commits

From: Johannes Huber <johu@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/kde:master commit in: kde-plasma/kwin/files/
Date: Tue, 30 Jun 2015 20:54:10
Message-Id: 1435697615.3b7bcc11b396a8b520e61a99aaaec3d35366e819.johu@gentoo
1 commit: 3b7bcc11b396a8b520e61a99aaaec3d35366e819
2 Author: Johannes Huber <johu <AT> gentoo <DOT> org>
3 AuthorDate: Tue Jun 30 20:53:35 2015 +0000
4 Commit: Johannes Huber <johu <AT> gentoo <DOT> org>
5 CommitDate: Tue Jun 30 20:53:35 2015 +0000
6 URL: https://gitweb.gentoo.org/proj/kde.git/commit/?id=3b7bcc11
7
8 [de-plasma/kwin] Remove unused patch
9
10 Package-Manager: portage-2.2.20
11
12 kde-plasma/kwin/files/kwin-5.3.1-gles2.patch | 47 ----------------------------
13 1 file changed, 47 deletions(-)
14
15 diff --git a/kde-plasma/kwin/files/kwin-5.3.1-gles2.patch b/kde-plasma/kwin/files/kwin-5.3.1-gles2.patch
16 deleted file mode 100644
17 index cf4d859..0000000
18 --- a/kde-plasma/kwin/files/kwin-5.3.1-gles2.patch
19 +++ /dev/null
20 @@ -1,47 +0,0 @@
21 -commit 713c6b25dce2fc60184ddc7b618b0b1195ab9870
22 -Author: Martin Gräßlin <mgraesslin@×××.org>
23 -Date: Fri May 8 08:53:34 2015 +0200
24 -
25 - [kwinglutils] Init glVersion on gles
26 -
27 - The glVersion was not set at all for gles causing any code doing a
28 - hasGLVersion check to fail which means that the compositor doesn't
29 - start at all, because it has a hasGLVersion(2, 0) check.
30 -
31 - The complete ifdef is no longer needed. The used additional glGetStringi
32 - is also available in gles 3.0, thus epoxy can handle it quite well
33 - without a need for ifdef.
34 -
35 - Unfortunately the version string can be "strange" on GLES. On desktop
36 - it looks like: "3.0 some driver foo", on GLES it could also be:
37 - "OpenGL ES 3.0 some driver bar". Thus to make the logic work we are
38 - first removing any leading "OpenGL ES " and hope that then the version
39 - is encoded just like on GL.
40 -
41 -diff --git a/libkwineffects/kwinglutils.cpp b/libkwineffects/kwinglutils.cpp
42 -index 8830c44..fd2e217 100644
43 ---- a/libkwineffects/kwinglutils.cpp
44 -+++ b/libkwineffects/kwinglutils.cpp
45 -@@ -106,11 +106,12 @@ void initGL(OpenGLPlatformInterface platformInterface)
46 - {
47 - // Get OpenGL version
48 - QString glversionstring = QString::fromUtf8((const char*)glGetString(GL_VERSION));
49 -+ if (glversionstring.startsWith(QLatin1String("OpenGL ES "))) {
50 -+ glversionstring = glversionstring.mid(10);
51 -+ }
52 - QStringList glversioninfo = glversionstring.left(glversionstring.indexOf(QStringLiteral(" "))).split(QStringLiteral("."));
53 - while (glversioninfo.count() < 3)
54 - glversioninfo << QStringLiteral("0");
55 --
56 --#ifndef KWIN_HAVE_OPENGLES
57 - glVersion = MAKE_GL_VERSION(glversioninfo[0].toInt(), glversioninfo[1].toInt(), glversioninfo[2].toInt());
58 -
59 - // Get list of supported OpenGL extensions
60 -@@ -123,7 +124,6 @@ void initGL(OpenGLPlatformInterface platformInterface)
61 - glExtensions << name;
62 - }
63 - } else
64 --#endif
65 - glExtensions = QByteArray((const char*)glGetString(GL_EXTENSIONS)).split(' ');
66 -
67 - // handle OpenGL extensions functions