mirror of
https://github.com/brl/mutter.git
synced 2024-12-24 20:12:06 +00:00
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:
parent
f5409ecd3a
commit
fe422ab61c
@ -536,7 +536,7 @@ clutter_gdk_get_visual (void)
|
|||||||
#if defined(GDK_WINDOWING_X11) && defined(COGL_HAS_XLIB_SUPPORT)
|
#if defined(GDK_WINDOWING_X11) && defined(COGL_HAS_XLIB_SUPPORT)
|
||||||
if (GDK_IS_X11_SCREEN (screen))
|
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)
|
if (xvisinfo != NULL)
|
||||||
return gdk_x11_screen_lookup_visual (screen, xvisinfo->visualid);
|
return gdk_x11_screen_lookup_visual (screen, xvisinfo->visualid);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user