Fix glfwinfo not handling --platform=any

This commit is contained in:
Camilla Löwy 2021-10-25 21:24:07 +02:00
parent 2a78a2cf82
commit 575d2971d4

View File

@ -462,7 +462,9 @@ int main(int argc, char** argv)
switch (ch)
{
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;
else if (strcasecmp(optarg, PLATFORM_NAME_COCOA) == 0)
platform = GLFW_PLATFORM_COCOA;