mirror of
https://github.com/glfw/glfw.git
synced 2024-11-22 10:05:10 +00:00
Fix glfwinfo not handling --platform=any
This commit is contained in:
parent
2a78a2cf82
commit
575d2971d4
@ -462,7 +462,9 @@ int main(int argc, char** argv)
|
|||||||
switch (ch)
|
switch (ch)
|
||||||
{
|
{
|
||||||
case PLATFORM:
|
case PLATFORM:
|
||||||
if (strcasecmp(optarg, PLATFORM_NAME_WIN32) == 0)
|
if (strcasecmp(optarg, PLATFORM_NAME_ANY) == 0)
|
||||||
|
platform = GLFW_ANY_PLATFORM;
|
||||||
|
else if (strcasecmp(optarg, PLATFORM_NAME_WIN32) == 0)
|
||||||
platform = GLFW_PLATFORM_WIN32;
|
platform = GLFW_PLATFORM_WIN32;
|
||||||
else if (strcasecmp(optarg, PLATFORM_NAME_COCOA) == 0)
|
else if (strcasecmp(optarg, PLATFORM_NAME_COCOA) == 0)
|
||||||
platform = GLFW_PLATFORM_COCOA;
|
platform = GLFW_PLATFORM_COCOA;
|
||||||
|
Loading…
Reference in New Issue
Block a user