Make glfwinfo try Vulkan even if GL/GLES fails

This commit is contained in:
Camilla Löwy 2023-01-20 06:50:52 +01:00
parent 9cce2896ee
commit 6f2d7064be

View File

@ -710,12 +710,8 @@ int main(int argc, char** argv)
glfwWindowHint(GLFW_COCOA_GRAPHICS_SWITCHING, cocoa_graphics_switching);
GLFWwindow* window = glfwCreateWindow(200, 200, "Version", NULL, NULL);
if (!window)
if (window)
{
glfwTerminate();
exit(EXIT_FAILURE);
}
glfwMakeContextCurrent(window);
gladLoadGL(glfwGetProcAddress);
@ -893,6 +889,7 @@ int main(int argc, char** argv)
list_context_extensions(client, major, minor);
glfwDestroyWindow(window);
}
glfwWindowHint(GLFW_CLIENT_API, GLFW_NO_API);