summaryrefslogtreecommitdiff
path: root/x11/kde-workspace4
diff options
context:
space:
mode:
Diffstat (limited to 'x11/kde-workspace4')
-rw-r--r--x11/kde-workspace4/distinfo4
-rw-r--r--x11/kde-workspace4/patches/patch-kwin_glxbackend.cpp22
-rw-r--r--x11/kde-workspace4/patches/patch-kwin_scene_opengl.cpp34
3 files changed, 59 insertions, 1 deletions
diff --git a/x11/kde-workspace4/distinfo b/x11/kde-workspace4/distinfo
index bb1407ed932..aed83f4bfe3 100644
--- a/x11/kde-workspace4/distinfo
+++ b/x11/kde-workspace4/distinfo
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.9 2013/11/07 13:35:56 markd Exp $
+$NetBSD: distinfo,v 1.10 2013/12/12 11:09:28 markd Exp $
SHA1 (Daemon.README) = eb1e6af52adc02ded77af17e8953134b7e60d23b
RMD160 (Daemon.README) = 39edd92ed4314397080f32a8caff0ac3f716ecf4
@@ -29,7 +29,9 @@ SHA1 (patch-ksysguard_ksysguardd_NetBSD_Memory.h) = e58dc4a0a7be7350251f26de34a8
SHA1 (patch-ksysguard_ksysguardd_NetBSD_ProcessList.c) = 0921fe9569bd54f5e381ebead738b95e431bb1d5
SHA1 (patch-ksysguard_ksysguardd_Solaris_LoadAvg.c) = bc3c434d09485cdf03a357ab5621271adcc3627b
SHA1 (patch-kwin_effects_mousemark_mousemark.cpp) = 4b6625f9bebf6bd2c6057d7045d9ce6af3103578
+SHA1 (patch-kwin_glxbackend.cpp) = a5e954a70e943a2d40d35f8a49b611b03d072af6
SHA1 (patch-kwin_killer_killer.cpp) = b64133ee8b96e4275ed1cbe68a64630e08f77154
+SHA1 (patch-kwin_scene_opengl.cpp) = 53de757225b74ddf85609b2ec920659964940e59
SHA1 (patch-libs_ksysguard_ksgrd_SensorManager.cpp) = 5fa92fa4876514198813f900f71f3364794b8248
SHA1 (patch-libs_ksysguard_processcore_CMakeLists.txt) = 61b886388aa5d0831581eacb7db79de0ae5eaf80
SHA1 (patch-libs_ksysguard_processcore_processes.cpp) = 8bfcc8b7e91eafd6b444f4103d3860fb6434a535
diff --git a/x11/kde-workspace4/patches/patch-kwin_glxbackend.cpp b/x11/kde-workspace4/patches/patch-kwin_glxbackend.cpp
new file mode 100644
index 00000000000..e5ba9f7f458
--- /dev/null
+++ b/x11/kde-workspace4/patches/patch-kwin_glxbackend.cpp
@@ -0,0 +1,22 @@
+$NetBSD: patch-kwin_glxbackend.cpp,v 1.1 2013/12/12 11:09:28 markd Exp $
+
+Don't fail build with old MesaLib
+
+--- kwin/glxbackend.cpp.orig 2013-09-26 19:18:26.000000000 +0000
++++ kwin/glxbackend.cpp
+@@ -152,6 +152,7 @@ bool GlxBackend::initRenderingContext()
+ {
+ bool direct = options->isGlDirect();
+
++#if GLX_GLXEXT_VERSION >= 32
+ // Use glXCreateContextAttribsARB() when it's available
+ if (glXCreateContextAttribsARB) {
+ const int attribs_31_core_robustness[] = {
+@@ -197,6 +198,7 @@ bool GlxBackend::initRenderingContext()
+ if (!ctx)
+ ctx = glXCreateContextAttribsARB(display(), fbconfig, 0, direct, attribs_legacy);
+ }
++#endif
+
+ if (!ctx)
+ ctx = glXCreateNewContext(display(), fbconfig, GLX_RGBA_TYPE, NULL, direct);
diff --git a/x11/kde-workspace4/patches/patch-kwin_scene_opengl.cpp b/x11/kde-workspace4/patches/patch-kwin_scene_opengl.cpp
new file mode 100644
index 00000000000..b59d3cfc6b7
--- /dev/null
+++ b/x11/kde-workspace4/patches/patch-kwin_scene_opengl.cpp
@@ -0,0 +1,34 @@
+$NetBSD: patch-kwin_scene_opengl.cpp,v 1.1 2013/12/12 11:09:28 markd Exp $
+
+Don't fail build with old MesaLib
+
+--- kwin/scene_opengl.cpp.orig 2013-09-26 19:18:26.000000000 +0000
++++ kwin/scene_opengl.cpp
+@@ -293,6 +293,7 @@ void SceneOpenGL::copyPixels(const QRegi
+ }
+ #endif
+
++#if GLX_GLXEXT_VERSION >= 32
+ #ifndef KWIN_HAVE_OPENGLES
+ # define GL_GUILTY_CONTEXT_RESET_KWIN GL_GUILTY_CONTEXT_RESET_ARB
+ # define GL_INNOCENT_CONTEXT_RESET_KWIN GL_INNOCENT_CONTEXT_RESET_ARB
+@@ -302,9 +303,11 @@ void SceneOpenGL::copyPixels(const QRegi
+ # define GL_INNOCENT_CONTEXT_RESET_KWIN GL_INNOCENT_CONTEXT_RESET_EXT
+ # define GL_UNKNOWN_CONTEXT_RESET_KWIN GL_UNKNOWN_CONTEXT_RESET_EXT
+ #endif
++#endif
+
+ void SceneOpenGL::handleGraphicsReset(GLenum status)
+ {
++#if GLX_GLXEXT_VERSION >= 32
+ switch (status) {
+ case GL_GUILTY_CONTEXT_RESET_KWIN:
+ kDebug(1212) << "A graphics reset attributable to the current GL context occurred.";
+@@ -321,6 +324,7 @@ void SceneOpenGL::handleGraphicsReset(GL
+ default:
+ break;
+ }
++#endif
+
+ QElapsedTimer timer;
+ timer.start();