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



commit ccebd62b287990bbfa1968ae1c0833f1f457b3a6
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 f7ca8a5..5ba0c26 100644
--- a/panels/info/cc-info-panel.c
+++ b/panels/info/cc-info-panel.c
@@ -312,6 +312,7 @@ get_graphics_data_glx_renderer ()
     None
   };
   int nconfigs;
+  int major, minor;
   Window window;
   GLXFBConfig *config;
   GLXWindow glxwin;
@@ -324,6 +325,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]