mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-02 09:01:38 -05:00
Fix bool return types
This makes wlroots build in C23 mode. C23 is more strict and rejects implicit conversions from bool to a pointer.
This commit is contained in:
parent
2f2a55ebd3
commit
a0b1329ee6
4 changed files with 7 additions and 7 deletions
|
|
@ -1816,12 +1816,12 @@ struct wlr_vk_pipeline_layout *get_or_create_pipeline_layout(
|
|||
if (res != VK_SUCCESS) {
|
||||
wlr_vk_error("vkCreateSampler", res);
|
||||
free(pipeline_layout);
|
||||
return false;
|
||||
return NULL;
|
||||
}
|
||||
|
||||
if (!init_tex_layouts(renderer, pipeline_layout->sampler, &pipeline_layout->ds, &pipeline_layout->vk)) {
|
||||
free(pipeline_layout);
|
||||
return false;
|
||||
return NULL;
|
||||
}
|
||||
|
||||
wl_list_insert(&renderer->pipeline_layouts, &pipeline_layout->link);
|
||||
|
|
|
|||
|
|
@ -806,7 +806,7 @@ static struct wlr_texture *vulkan_texture_from_dmabuf_buffer(
|
|||
|
||||
struct wlr_vk_texture *texture = vulkan_texture_from_dmabuf(renderer, dmabuf);
|
||||
if (texture == NULL) {
|
||||
return false;
|
||||
return NULL;
|
||||
}
|
||||
|
||||
texture->buffer = wlr_buffer_lock(buffer);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue