mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2024-12-29 11:06:18 +00:00
xrt: Correct assert for ipc data type
This commit is contained in:
parent
bf9f0e6e39
commit
16b9dc13e2
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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];
|
||||
|
|
Loading…
Reference in a new issue