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



commit 1cb16f9232fdfe848d4f6c83b39d5b30c7743898
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 2d09453..3a3037e 100644
--- a/panels/info/cc-info-panel.c
+++ b/panels/info/cc-info-panel.c
@@ -300,6 +300,7 @@ get_graphics_data_glx_renderer ()
     None
   };
   int nconfigs;
+  int major, minor;
   Window window;
   GLXFBConfig *config;
   GLXWindow glxwin;
@@ -312,6 +313,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]