c/client: The client compositors doesn't own the native compositor

This commit is contained in:
Jakob Bornecrantz 2020-10-04 12:49:52 +01:00
parent 6ec6c2eac9
commit 309037a445
3 changed files with 2 additions and 6 deletions

View file

@ -51,8 +51,7 @@ static void
client_egl_compositor_destroy(struct xrt_compositor *xc) client_egl_compositor_destroy(struct xrt_compositor *xc)
{ {
struct client_gl_compositor *c = client_gl_compositor(xc); struct client_gl_compositor *c = client_gl_compositor(xc);
// Pipe down call into native compositor.
xrt_comp_native_destroy(&c->xcn);
free(c); free(c);
} }

View file

@ -35,8 +35,7 @@ static void
client_gl_xlib_compositor_destroy(struct xrt_compositor *xc) client_gl_xlib_compositor_destroy(struct xrt_compositor *xc)
{ {
struct client_gl_xlib_compositor *c = client_gl_xlib_compositor(xc); struct client_gl_xlib_compositor *c = client_gl_xlib_compositor(xc);
// Pipe down call into native compositor.
xrt_comp_native_destroy(&c->base.xcn);
free(c); free(c);
} }

View file

@ -163,8 +163,6 @@ client_vk_compositor_destroy(struct xrt_compositor *xc)
c->vk.cmd_pool = VK_NULL_HANDLE; c->vk.cmd_pool = VK_NULL_HANDLE;
} }
// Pipe down call into native compositor.
xrt_comp_native_destroy(&c->xcn);
free(c); free(c);
} }