mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-12-22 18:09:49 +01:00
render/vulkan: avoid double-close on sync_file FD after semaphore import
Closes: https://gitlab.freedesktop.org/wlroots/wlroots/-/issues/3610
This commit is contained in:
parent
12e28c3492
commit
59d2743c0c
1 changed files with 1 additions and 1 deletions
|
@ -840,8 +840,8 @@ static bool vulkan_sync_foreign_texture(struct wlr_vk_texture *texture) {
|
|||
.fd = sync_file_fd,
|
||||
};
|
||||
res = renderer->dev->api.importSemaphoreFdKHR(renderer->dev->dev, &import_info);
|
||||
close(sync_file_fd);
|
||||
if (res != VK_SUCCESS) {
|
||||
close(sync_file_fd);
|
||||
wlr_vk_error("vkImportSemaphoreFdKHR", res);
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue