c/main: Fix warnings with asserts

This commit is contained in:
Jakob Bornecrantz 2020-08-10 18:46:43 +01:00
parent 5e78752a6e
commit 71e10fafcd
2 changed files with 12 additions and 0 deletions

View file

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

View file

@ -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(