mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2024-12-29 11:06:18 +00:00
st/oxr: Do not destroy native compositor in sub-classed session creation functions
So it's owned by the instance.
This commit is contained in:
parent
6961bf885f
commit
2aaa3acfdf
|
@ -71,7 +71,6 @@ oxr_session_populate_egl(struct oxr_logger *log,
|
|||
next->context, next->getProcAddress);
|
||||
|
||||
if (xcgl == NULL) {
|
||||
xcn->base.destroy(&xcn->base);
|
||||
return oxr_error(log, XR_ERROR_INITIALIZATION_FAILED,
|
||||
"Failed to create an egl client compositor");
|
||||
}
|
||||
|
|
|
@ -39,7 +39,6 @@ oxr_session_populate_gl_xlib(struct oxr_logger *log,
|
|||
next->glxDrawable, next->glxContext);
|
||||
|
||||
if (xcgl == NULL) {
|
||||
xcn->base.destroy(&xcn->base);
|
||||
return oxr_error(log, XR_ERROR_INITIALIZATION_FAILED,
|
||||
"Failed to create an xlib client compositor");
|
||||
}
|
||||
|
|
|
@ -82,7 +82,6 @@ oxr_session_populate_gles_android(
|
|||
xcn, next->display, next->config, next->context, get_proc_addr);
|
||||
|
||||
if (xcgl == NULL) {
|
||||
xcn->base.destroy(&xcn->base);
|
||||
return oxr_error(log, XR_ERROR_INITIALIZATION_FAILED,
|
||||
"Failed to create an egl client compositor");
|
||||
}
|
||||
|
|
|
@ -33,7 +33,6 @@ oxr_session_populate_vk(struct oxr_logger *log,
|
|||
next->device, next->queueFamilyIndex, next->queueIndex);
|
||||
|
||||
if (xcvk == NULL) {
|
||||
xcn->base.destroy(&xcn->base);
|
||||
return oxr_error(log, XR_ERROR_INITIALIZATION_FAILED,
|
||||
"Failed to create an vk client compositor");
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue