diff options
Diffstat (limited to 'render/vulkan')
-rw-r--r-- | render/vulkan/renderer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/render/vulkan/renderer.c b/render/vulkan/renderer.c index 667301f9..0b99a6a4 100644 --- a/render/vulkan/renderer.c +++ b/render/vulkan/renderer.c @@ -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; } |