[clutter] gdk: Use non-deprecated/non-Clutter specific X11 API



commit fe422ab61c2bb7b23af6c4707a27b4de4d49beb1
Author: Emmanuele Bassi <ebassi gnome org>
Date:   Fri Aug 21 11:58:52 2015 +0100

    gdk: Use non-deprecated/non-Clutter specific X11 API
    
    We are currently using deprecated/Clutter-specific API in Cogl to
    retrieve the XVisualInfo associated with the (E)GLX context. Cogl 1.21.2
    added new CoglRenderer API to achieve the same result.

 clutter/gdk/clutter-backend-gdk.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/clutter/gdk/clutter-backend-gdk.c b/clutter/gdk/clutter-backend-gdk.c
index 240829a..a464e68 100644
--- a/clutter/gdk/clutter-backend-gdk.c
+++ b/clutter/gdk/clutter-backend-gdk.c
@@ -536,7 +536,7 @@ clutter_gdk_get_visual (void)
 #if defined(GDK_WINDOWING_X11) && defined(COGL_HAS_XLIB_SUPPORT)
   if (GDK_IS_X11_SCREEN (screen))
     {
-      XVisualInfo *xvisinfo = cogl_clutter_winsys_xlib_get_visual_info ();
+      XVisualInfo *xvisinfo = cogl_xlib_renderer_get_visual_info (backend->cogl_renderer);
       if (xvisinfo != NULL)
         return gdk_x11_screen_lookup_visual (screen, xvisinfo->visualid);
     }


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