mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-01-01 12:46:12 +00:00
c/main: Fix warnings with asserts
This commit is contained in:
parent
5e78752a6e
commit
71e10fafcd
|
@ -397,6 +397,12 @@ compositor_layer_commit(struct xrt_compositor *xc, int64_t frame_id)
|
|||
comp_renderer_set_projection_layer(c->r, i, left, right,
|
||||
data);
|
||||
} break;
|
||||
case XRT_LAYER_STEREO_PROJECTION_DEPTH:
|
||||
case XRT_LAYER_CUBE:
|
||||
case XRT_LAYER_CYLINDER:
|
||||
case XRT_LAYER_EQUIRECT:
|
||||
// Should never end up here.
|
||||
assert(false);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -224,6 +224,12 @@ comp_layer_draw(struct comp_render_layer *self,
|
|||
_update_mvp_matrix(self, eye, &proj_scale);
|
||||
break;
|
||||
case XRT_LAYER_QUAD: _update_mvp_matrix(self, eye, vp); break;
|
||||
case XRT_LAYER_STEREO_PROJECTION_DEPTH:
|
||||
case XRT_LAYER_CUBE:
|
||||
case XRT_LAYER_CYLINDER:
|
||||
case XRT_LAYER_EQUIRECT:
|
||||
// Should never end up here.
|
||||
assert(false);
|
||||
}
|
||||
|
||||
self->vk->vkCmdBindDescriptorSets(
|
||||
|
|
Loading…
Reference in a new issue