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:
Simon Ser 2024-01-04 22:24:06 +01:00
parent 2f2a55ebd3
commit a0b1329ee6
4 changed files with 7 additions and 7 deletions

View file

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