diff --git a/src/xrt/compositor/main/comp_layer.c b/src/xrt/compositor/main/comp_layer.c index fffa2b028..9f22f4050 100644 --- a/src/xrt/compositor/main/comp_layer.c +++ b/src/xrt/compositor/main/comp_layer.c @@ -154,13 +154,10 @@ comp_layer_update_stereo_descriptors(struct comp_render_layer *self, static bool _init(struct comp_render_layer *self, struct vk_bundle *vk, - enum xrt_layer_type type, VkDescriptorSetLayout *layout) { self->vk = vk; - self->type = type; - self->view_space = true; self->visibility = XRT_LAYER_EYE_VISIBILITY_BOTH; @@ -241,13 +238,11 @@ comp_layer_draw(struct comp_render_layer *self, } struct comp_render_layer * -comp_layer_create(struct vk_bundle *vk, - enum xrt_layer_type type, - VkDescriptorSetLayout *layout) +comp_layer_create(struct vk_bundle *vk, VkDescriptorSetLayout *layout) { struct comp_render_layer *q = U_TYPED_CALLOC(struct comp_render_layer); - _init(q, vk, type, layout); + _init(q, vk, layout); return q; } diff --git a/src/xrt/compositor/main/comp_layer.h b/src/xrt/compositor/main/comp_layer.h index d5ad039b7..e27b937c1 100644 --- a/src/xrt/compositor/main/comp_layer.h +++ b/src/xrt/compositor/main/comp_layer.h @@ -41,9 +41,7 @@ struct comp_render_layer }; struct comp_render_layer * -comp_layer_create(struct vk_bundle *vk, - enum xrt_layer_type type, - VkDescriptorSetLayout *layout); +comp_layer_create(struct vk_bundle *vk, VkDescriptorSetLayout *layout); void comp_layer_draw(struct comp_render_layer *self, diff --git a/src/xrt/compositor/main/comp_layer_renderer.c b/src/xrt/compositor/main/comp_layer_renderer.c index 1b43df36b..c85df4c45 100644 --- a/src/xrt/compositor/main/comp_layer_renderer.c +++ b/src/xrt/compositor/main/comp_layer_renderer.c @@ -468,8 +468,8 @@ comp_layer_renderer_allocate_layers(struct comp_layer_renderer *self, U_TYPED_ARRAY_CALLOC(struct comp_render_layer *, self->num_layers); for (uint32_t i = 0; i < self->num_layers; i++) { - self->layers[i] = comp_layer_create( - vk, XRT_LAYER_QUAD, &self->descriptor_set_layout); + self->layers[i] = + comp_layer_create(vk, &self->descriptor_set_layout); } }