File kcm_opengl-Remove-querying-indirect-rendering-context.patch of Package kdebase4-workspace

From 9f9814219d899a64dd5b68711534ec7206858147 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Martin=20Gr=C3=A4=C3=9Flin?= <mgraesslin@kde.org>
Date: Wed, 3 Jun 2015 17:37:28 +0200
Subject: [PATCH] Remove querying the indirect rendering context

Mesa fails to make an indirect rendering context current and freezes
in the next X11 call.

Removing indirect rendering support seems like a workaround for the
problem, but realisticly it's no longer interesting what indirect
rendering provides if direct rendering is available. If direct
rendering is not available, it will pick indirect instead.

BUG: 344971
FIXED-IN: 5.4.0
REVIEW: 123995
---
 Modules/opengl/opengl.cpp | 2 --
 1 file changed, 2 deletions(-)

diff --git a/kinfocenter/Modules/opengl/opengl.cpp b/kinfocenter/Modules/opengl/opengl.cpp
index c87cde8..1e5e6d3 100644
--- a/kinfocenter/Modules/opengl/opengl.cpp
+++ b/kinfocenter/Modules/opengl/opengl.cpp
@@ -850,7 +850,6 @@ bool GetInfo_OpenGL(QTreeWidget *treeWidget)
  	if (l2) l2->setExpanded(true);
 
 #ifndef KCM_ENABLE_OPENGLES
-	if (IsDirect) l2 = get_gl_info(dpy, scrnum, false, l1, l2);
 #endif
 
 //   TODO      print_visual_info(dpy, scrnum, mode);
-- 
GitLab

openSUSE Build Service is sponsored by