mirror of
https://github.com/gwm17/glfw.git
synced 2024-11-26 12:18:51 -05:00
Fix output for missing Vulkan surface extensions
When the Vulkan loader is present but there are no required surface extensions, as will for example happen with the Null platform, glfwinfo caused an error in glfwGetPhysicalDevicePresentationSupport and produced confusing output.
This commit is contained in:
parent
4be0444ee6
commit
1d8d1ff3d0
|
@ -954,14 +954,17 @@ int main(int argc, char** argv)
|
||||||
uint32_t qfp_count;
|
uint32_t qfp_count;
|
||||||
vkGetPhysicalDeviceQueueFamilyProperties(pd[i], &qfp_count, NULL);
|
vkGetPhysicalDeviceQueueFamilyProperties(pd[i], &qfp_count, NULL);
|
||||||
|
|
||||||
printf("Vulkan device queue family presentation support:\n");
|
if (re)
|
||||||
for (uint32_t j = 0; j < qfp_count; j++)
|
|
||||||
{
|
{
|
||||||
printf(" %u: ", j);
|
printf("Vulkan device queue family presentation support:\n");
|
||||||
if (glfwGetPhysicalDevicePresentationSupport(instance, pd[i], j))
|
for (uint32_t j = 0; j < qfp_count; j++)
|
||||||
printf("supported\n");
|
{
|
||||||
else
|
printf(" %u: ", j);
|
||||||
printf("no\n");
|
if (glfwGetPhysicalDevicePresentationSupport(instance, pd[i], j))
|
||||||
|
printf("supported\n");
|
||||||
|
else
|
||||||
|
printf("no\n");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (list_extensions)
|
if (list_extensions)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user