diff options
author | Emmanuele Bassi <ebassi@gnome.org> | 2015-08-21 11:58:52 +0100 |
---|---|---|
committer | Emmanuele Bassi <ebassi@gnome.org> | 2015-08-21 11:58:52 +0100 |
commit | fe422ab61c2bb7b23af6c4707a27b4de4d49beb1 (patch) | |
tree | 6fa135b7932c9962588714e8b6a464c5899c8ba6 | |
parent | f5409ecd3a28a9e32467652d34120aa77fcff0a2 (diff) | |
download | clutter-fe422ab61c2bb7b23af6c4707a27b4de4d49beb1.tar.gz |
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.
-rw-r--r-- | 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 240829a51..a464e684b 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); } |