mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-12-22 18:09:49 +01:00
output/swapchain: fix error return value types
This function returns a bool, not a pointer.
This commit is contained in:
parent
b5eaa47049
commit
6dd8b092e9
1 changed files with 2 additions and 2 deletions
|
@ -101,13 +101,13 @@ bool wlr_output_configure_primary_swapchain(struct wlr_output *output,
|
|||
if (swapchain == NULL) {
|
||||
wlr_log(WLR_ERROR, "Failed to create modifier-less swapchain for output '%s'",
|
||||
output->name);
|
||||
return NULL;
|
||||
return false;
|
||||
}
|
||||
wlr_log(WLR_DEBUG, "Testing modifier-less swapchain for output '%s'", output->name);
|
||||
if (!test_swapchain(output, swapchain, state)) {
|
||||
wlr_log(WLR_ERROR, "Swapchain for output '%s' failed test", output->name);
|
||||
wlr_swapchain_destroy(swapchain);
|
||||
return NULL;
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue