mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2024-12-29 11:06:18 +00:00
c/main: Treat cube as the other optional layers
This commit is contained in:
parent
90f708d91c
commit
b6cab2fe07
|
@ -283,21 +283,23 @@ do_graphics_layers(struct comp_compositor *c)
|
|||
comp_renderer_set_equirect2_layer(c->r, i, image, data);
|
||||
} break;
|
||||
#endif
|
||||
case XRT_LAYER_CUBE: {
|
||||
#ifdef XRT_FEATURE_OPENXR_LAYER_CUBE
|
||||
case XRT_LAYER_CUBE: {
|
||||
struct xrt_layer_cube_data *cu = &layer->data.cube;
|
||||
struct comp_swapchain_image *image;
|
||||
image = &layer->sc_array[0]->images[cu->sub.image_index];
|
||||
comp_renderer_set_cube_layer(c->r, i, image, data);
|
||||
#else
|
||||
COMP_WARN(c, "XR_KHR_composition_layer_cube support not enabled");
|
||||
#endif
|
||||
} break;
|
||||
#endif
|
||||
|
||||
#ifndef XRT_FEATURE_OPENXR_LAYER_EQUIRECT1
|
||||
case XRT_LAYER_EQUIRECT1:
|
||||
#endif
|
||||
#ifndef XRT_FEATURE_OPENXR_LAYER_EQUIRECT2
|
||||
case XRT_LAYER_EQUIRECT2:
|
||||
#endif
|
||||
#ifndef XRT_FEATURE_OPENXR_LAYER_CUBE
|
||||
case XRT_LAYER_CUBE:
|
||||
#endif
|
||||
default:
|
||||
// Should never end up here.
|
||||
|
|
Loading…
Reference in a new issue