mirror of
https://github.com/glfw/glfw.git
synced 2024-11-25 06:04:34 +00:00
Make glfwinfo try Vulkan even if GL/GLES fails
This commit is contained in:
parent
9cce2896ee
commit
6f2d7064be
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user