From f5af421a6b9910ae8d02c4f468ec6d130052c351 Mon Sep 17 00:00:00 2001 From: Philip Rideout Date: Tue, 5 Jan 2021 20:42:46 -0800 Subject: [PATCH] Cocoa: Fix duplicate video mode detection Closes #1830. --- src/cocoa_monitor.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cocoa_monitor.m b/src/cocoa_monitor.m index 2bb83738..d0112d26 100644 --- a/src/cocoa_monitor.m +++ b/src/cocoa_monitor.m @@ -527,7 +527,7 @@ GLFWvidmode* _glfwPlatformGetVideoModes(_GLFWmonitor* monitor, int* count) } // Skip duplicate modes - if (i < *count) + if (j < *count) continue; (*count)++;