9
9
https://bugzilla.gnome.org/show_bug.cgi?id=691613
11
Index: gnome-control-center-3.6.3/configure.ac
12
===================================================================
13
--- gnome-control-center-3.6.3.orig/configure.ac 2013-03-25 17:49:48.060473367 +0100
14
+++ gnome-control-center-3.6.3/configure.ac 2013-03-25 17:49:48.000000000 +0100
15
13
@@ -120,7 +120,7 @@
16
14
polkit-gobject-1 >= $POLKIT_REQUIRED_VERSION
17
15
gdk-pixbuf-2.0 >= $GDKPIXBUF_REQUIRED_VERSION)
21
19
polkit-gobject-1 >= $POLKIT_REQUIRED_VERSION)
22
20
PKG_CHECK_MODULES(KEYBOARD_PANEL, $COMMON_MODULES x11)
23
21
PKG_CHECK_MODULES(MEDIA_PANEL, $COMMON_MODULES)
24
Index: gnome-control-center-3.6.3/panels/info/cc-info-panel.c
25
===================================================================
26
--- gnome-control-center-3.6.3.orig/panels/info/cc-info-panel.c 2013-03-25 17:49:48.060473367 +0100
27
+++ gnome-control-center-3.6.3/panels/info/cc-info-panel.c 2013-03-25 17:49:48.000000000 +0100
22
--- a/panels/info/cc-info-panel.c
23
+++ b/panels/info/cc-info-panel.c
29
25
#include <glibtop/mem.h>
30
26
#include <glibtop/sysinfo.h>
113
111
+ gdk_error_trap_pop_ignored ();
114
+ visualInfo = glXGetVisualFromFBConfig (display, *config);
115
+ win_attributes.colormap = XCreateColormap (display, DefaultRootWindow(display),
116
+ visualInfo->visual, AllocNone );
117
+ window = XCreateSimpleWindow (display, DefaultRootWindow (display),
118
+ window = XCreateWindow (display, DefaultRootWindow (display),
118
119
+ 0, 0, /* x, y */
119
120
+ 1, 1, /* width, height */
120
+ 0, 0, 0 /* border_width, border, background */);
121
+ 0, /* border_width */
122
+ visualInfo->depth, InputOutput,
123
+ visualInfo->visual, CWColormap, &win_attributes);
121
124
+ glxwin = glXCreateWindow (display, *config, window, NULL);
123
126
+ context = glXCreateNewContext (display, *config, GLX_RGBA_TYPE,
126
130
+ glXMakeContextCurrent (display, glxwin, glxwin, context);
127
131
+ renderer = (char *) glGetString (GL_RENDERER);
131
135
+ glXDestroyContext (display, context);
132
136
+ glXDestroyWindow (display, glxwin);
133
137
+ XDestroyWindow (display, window);
138
+ XFree (visualInfo);
135
140
+ if (gdk_error_trap_pop () != Success) {
136
141
+ g_warning ("Failed to get OpenGL driver info");