Clarify glfwinfo output for no Vulkan extensions

This commit is contained in:
Camilla Berglund 2016-11-07 19:44:56 +01:00
parent 4d322a97e1
commit 2aee114950

View File

@ -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();