Store the XVisualInfo in the X11-based winsys backends

Instead of freeing it after creating the relative GL contexts, store it
in the CoglXlibRenderer data.
This commit is contained in:
Emmanuele Bassi 2015-07-22 20:20:05 +01:00
parent 19ca856810
commit e79d571453
2 changed files with 2 additions and 2 deletions

View File

@ -641,7 +641,7 @@ _cogl_winsys_egl_context_created (CoglDisplay *display,
}
}
XFree (xvisinfo);
xlib_renderer->xvisinfo = xvisinfo;
if (!_cogl_winsys_egl_make_current (display,
egl_display->dummy_surface,

View File

@ -1159,7 +1159,7 @@ create_context (CoglDisplay *display, CoglError **error)
dummy_drawable,
glx_display->glx_context);
XFree (xvisinfo);
xlib_renderer->xvisinfo = xvisinfo;
if (_cogl_xlib_renderer_untrap_errors (display->renderer, &old_state))
{