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:
Jakob Bornecrantz 2020-09-24 17:42:13 +01:00
parent 6961bf885f
commit 2aaa3acfdf
4 changed files with 0 additions and 4 deletions

View file

@ -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");
}

View file

@ -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");
}

View file

@ -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");
}

View file

@ -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");
}