aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--backend/x11/backend.c4
-rw-r--r--render/vulkan/renderer.c4
-rw-r--r--render/vulkan/texture.c2
-rw-r--r--types/output/render.c4
4 files changed, 7 insertions, 7 deletions
diff --git a/backend/x11/backend.c b/backend/x11/backend.c
index fcaab618..5c5aa7e8 100644
--- a/backend/x11/backend.c
+++ b/backend/x11/backend.c
@@ -600,7 +600,7 @@ struct wlr_backend *wlr_x11_backend_create(struct wl_display *display,
if (!query_formats(x11)) {
wlr_log(WLR_ERROR, "Failed to query supported DRM formats");
- return false;
+ goto error_event;
}
x11->drm_fd = -1;
@@ -637,7 +637,7 @@ struct wlr_backend *wlr_x11_backend_create(struct wl_display *display,
#if HAVE_XCB_ERRORS
if (xcb_errors_context_new(x11->xcb, &x11->errors_context) != 0) {
wlr_log(WLR_ERROR, "Failed to create error context");
- return false;
+ goto error_event;
}
#endif
diff --git a/render/vulkan/renderer.c b/render/vulkan/renderer.c
index d15ccc2d..05486a0f 100644
--- a/render/vulkan/renderer.c
+++ b/render/vulkan/renderer.c
@@ -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);
diff --git a/render/vulkan/texture.c b/render/vulkan/texture.c
index 4b9674cf..61c14626 100644
--- a/render/vulkan/texture.c
+++ b/render/vulkan/texture.c
@@ -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);
diff --git a/types/output/render.c b/types/output/render.c
index ba0ea935..c5e86e1c 100644
--- a/types/output/render.c
+++ b/types/output/render.c
@@ -52,12 +52,12 @@ static struct wlr_buffer *output_acquire_empty_buffer(struct wlr_output *output,
// wlr_output_test_state(), which will prevent us from being called.
if (!wlr_output_configure_primary_swapchain(output, state,
&output->swapchain)) {
- return false;
+ return NULL;
}
struct wlr_buffer *buffer = wlr_swapchain_acquire(output->swapchain, NULL);
if (buffer == NULL) {
- return false;
+ return NULL;
}
struct wlr_render_pass *pass =