mirror of
https://github.com/glfw/glfw.git
synced 2025-04-06 05:55:09 +00:00
Cocoa: Fix duplicate video mode detection
Closes #1830.
(cherry picked from commit f5af421a6b
)
This commit is contained in:
parent
be56132c02
commit
078e8fcf55
1 changed files with 1 additions and 1 deletions
|
@ -527,7 +527,7 @@ GLFWvidmode* _glfwPlatformGetVideoModes(_GLFWmonitor* monitor, int* count)
|
|||
}
|
||||
|
||||
// Skip duplicate modes
|
||||
if (i < *count)
|
||||
if (j < *count)
|
||||
continue;
|
||||
|
||||
(*count)++;
|
||||
|
|
Loading…
Add table
Reference in a new issue