Cocoa: Fix duplicate video mode detection

Closes #1830.
This commit is contained in:
Philip Rideout 2021-01-05 20:42:46 -08:00 committed by Camilla Löwy
parent 5d1d1a01e3
commit f5af421a6b

View File

@ -527,7 +527,7 @@ GLFWvidmode* _glfwPlatformGetVideoModes(_GLFWmonitor* monitor, int* count)
} }
// Skip duplicate modes // Skip duplicate modes
if (i < *count) if (j < *count)
continue; continue;
(*count)++; (*count)++;