ipc: Tidy and better error messages

This commit is contained in:
Jakob Bornecrantz 2020-08-18 19:07:43 +01:00 committed by Jakob Bornecrantz
parent 7fb0af90de
commit 019e962f94

View file

@ -328,10 +328,11 @@ ipc_handle_swapchain_create(volatile struct ipc_client_state *ics,
return xret; return xret;
} }
// create the swapchain // Create the swapchain
struct xrt_swapchain *xsc = NULL; struct xrt_swapchain *xsc = NULL;
xret = xrt_comp_create_swapchain(ics->xc, info, &xsc); xret = xrt_comp_create_swapchain(ics->xc, info, &xsc);
if (xret != XRT_SUCCESS) { if (xret != XRT_SUCCESS) {
fprintf(stderr, "ERROR: xrt_comp_create_swapchain failed!\n");
return xret; return xret;
} }