1
0
Fork 0
mirror of https://github.com/gwm17/glfw.git synced 2024-11-26 12:18:51 -05:00

Cocoa: Fix duplicate video mode detection

Closes #1830.

(cherry picked from commit f5af421a6b)
This commit is contained in:
Philip Rideout 2021-01-05 20:42:46 -08:00 committed by Camilla Löwy
parent be56132c02
commit 078e8fcf55

View File

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