xrt: Correct assert for ipc data type

This commit is contained in:
Jakob Bornecrantz 2020-08-25 14:55:15 +01:00
parent bf9f0e6e39
commit 16b9dc13e2
3 changed files with 4 additions and 4 deletions

View file

@ -163,8 +163,7 @@ client_gl_compositor_layer_stereo_projection(struct xrt_compositor *xc,
struct client_gl_compositor *c = client_gl_compositor(xc);
struct xrt_swapchain *l_xscn, *r_xscn;
assert(data->type == XRT_LAYER_STEREO_PROJECTION ||
data->type == XRT_LAYER_STEREO_PROJECTION_DEPTH);
assert(data->type == XRT_LAYER_STEREO_PROJECTION);
l_xscn = &client_gl_swapchain(l_xsc)->xscn->base;
r_xscn = &client_gl_swapchain(r_xsc)->xscn->base;

View file

@ -249,8 +249,7 @@ client_vk_compositor_layer_stereo_projection(struct xrt_compositor *xc,
struct client_vk_compositor *c = client_vk_compositor(xc);
struct xrt_swapchain *l_xscn, *r_xscn;
assert(data->type == XRT_LAYER_STEREO_PROJECTION ||
data->type == XRT_LAYER_STEREO_PROJECTION_DEPTH);
assert(data->type == XRT_LAYER_STEREO_PROJECTION);
l_xscn = &client_vk_swapchain(l_xsc)->xscn->base;
r_xscn = &client_vk_swapchain(r_xsc)->xscn->base;

View file

@ -480,6 +480,8 @@ ipc_compositor_layer_stereo_projection(struct xrt_compositor *xc,
{
struct ipc_client_compositor *icc = ipc_client_compositor(xc);
assert(data->type == XRT_LAYER_STEREO_PROJECTION);
struct ipc_shared_memory *ism = icc->ipc_c->ism;
struct ipc_layer_slot *slot = &ism->slots[icc->layers.slot_id];
struct ipc_layer_entry *layer = &slot->layers[icc->layers.num_layers];