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:
parent
19ca856810
commit
e79d571453
@ -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,
|
||||
|
@ -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))
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user