Cocoa: Fix duplicate video mode detection.

This commit is contained in:
Philip Rideout 2021-01-05 20:42:46 -08:00 committed by GitHub
parent 0b9e48fa3d
commit 06db51381e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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