mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-01-31 19:08:30 +00:00
c/main: Constify argument
This commit is contained in:
parent
05c61511ab
commit
9178e0ef59
|
@ -683,7 +683,7 @@ renderer_destroy(struct comp_renderer *r)
|
||||||
}
|
}
|
||||||
|
|
||||||
static VkImageView
|
static VkImageView
|
||||||
get_image_view(struct comp_swapchain_image *image, enum xrt_layer_composition_flags flags, uint32_t array_index)
|
get_image_view(const struct comp_swapchain_image *image, enum xrt_layer_composition_flags flags, uint32_t array_index)
|
||||||
{
|
{
|
||||||
if (flags & XRT_LAYER_COMPOSITION_BLEND_TEXTURE_SOURCE_ALPHA_BIT) {
|
if (flags & XRT_LAYER_COMPOSITION_BLEND_TEXTURE_SOURCE_ALPHA_BIT) {
|
||||||
return image->views.alpha[array_index];
|
return image->views.alpha[array_index];
|
||||||
|
|
Loading…
Reference in a new issue