From 0aa71d680898fd2812a3038a57eb9f9231af1de4 Mon Sep 17 00:00:00 2001 From: nyorain Date: Mon, 24 Jul 2017 21:03:26 +0200 Subject: [PATCH] Fix vulkan test --- test cases/frameworks/17 vulkan/meson.build | 2 +- test cases/frameworks/17 vulkan/vulkanprog.c | 13 ++----------- 2 files changed, 3 insertions(+), 12 deletions(-) diff --git a/test cases/frameworks/17 vulkan/meson.build b/test cases/frameworks/17 vulkan/meson.build index 869ae2f16..54f1d4746 100644 --- a/test cases/frameworks/17 vulkan/meson.build +++ b/test cases/frameworks/17 vulkan/meson.build @@ -2,6 +2,6 @@ project('vulkan test', 'c') vulkan_dep = dependency('vulkan') -e = executable('vulkanprog', 'vulkanprog.c', dependencies : sdl2_dep) +e = executable('vulkanprog', 'vulkanprog.c', dependencies : vulkan_dep) test('vulkantest', e) diff --git a/test cases/frameworks/17 vulkan/vulkanprog.c b/test cases/frameworks/17 vulkan/vulkanprog.c index 86a3a204d..af946defc 100644 --- a/test cases/frameworks/17 vulkan/vulkanprog.c +++ b/test cases/frameworks/17 vulkan/vulkanprog.c @@ -3,21 +3,11 @@ int main() { - VkApplicationInfo application_info = { - VK_STRUCTURE_TYPE_APPLICATION_INFO, - NULL, - "sway", - VK_MAKE_VERSION(1,0,0), - "wlroots", - VK_MAKE_VERSION(1,0,0), - VK_MAKE_VERSION(1,0,0) - }; - VkInstanceCreateInfo instance_create_info = { VK_STRUCTURE_TYPE_INSTANCE_CREATE_INFO, NULL, 0, - &application_info, + NULL, 0, NULL, 0, @@ -31,5 +21,6 @@ int main() return ret; } + vkDestroyInstance(instance, NULL); return 0; } \ No newline at end of file