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.
This commit is contained in:
Emmanuele Bassi 2015-08-21 11:58:52 +01:00
parent f5409ecd3a
commit fe422ab61c

View File

@ -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);
}