From 2aee11495022e3827959efd00967fd0a7fd4bf95 Mon Sep 17 00:00:00 2001 From: Camilla Berglund Date: Mon, 7 Nov 2016 19:44:56 +0100 Subject: [PATCH] Clarify glfwinfo output for no Vulkan extensions --- tests/glfwinfo.c | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/tests/glfwinfo.c b/tests/glfwinfo.c index 26d4b945..157abfab 100644 --- a/tests/glfwinfo.c +++ b/tests/glfwinfo.c @@ -820,9 +820,14 @@ int main(int argc, char** argv) re = glfwGetRequiredInstanceExtensions(&re_count); printf("Vulkan required instance extensions:"); - for (i = 0; i < re_count; i++) - printf(" %s", re[i]); - putchar('\n'); + if (re) + { + for (i = 0; i < re_count; i++) + printf(" %s", re[i]); + putchar('\n'); + } + else + printf(" missing\n"); if (list_extensions) list_vulkan_instance_extensions();