[gnome-control-center/gnome-3-8] info: fix crash when using vboxvideo glx driver



commit a05c4dc2042e4d97745502b91ab5e5b5526b53b9
Author: Tim Lunn <tim feathertop org>
Date:   Sun May 26 12:19:21 2013 +1000

    info: fix crash when using vboxvideo glx driver
    
    https://bugzilla.gnome.org/show_bug.cgi?id=699712

 panels/info/cc-info-panel.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/panels/info/cc-info-panel.c b/panels/info/cc-info-panel.c
index 9975070..388fff0 100644
--- a/panels/info/cc-info-panel.c
+++ b/panels/info/cc-info-panel.c
@@ -310,6 +310,7 @@ get_graphics_data_glx_renderer ()
     None
   };
   int nconfigs;
+  int major, minor;
   Window window;
   GLXFBConfig *config;
   GLXWindow glxwin;
@@ -322,6 +323,7 @@ get_graphics_data_glx_renderer ()
 
   display = GDK_DISPLAY_XDISPLAY (gdk_display_get_default ());
 
+  glXQueryVersion (display, &major, &minor);
   config = glXChooseFBConfig (display, DefaultScreen (display),
                               attributes, &nconfigs);
   if (config == NULL) {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]