diff --git a/src/cocoa_fullscreen.m b/src/cocoa_fullscreen.m index bf58a930..9382993b 100644 --- a/src/cocoa_fullscreen.m +++ b/src/cocoa_fullscreen.m @@ -207,6 +207,7 @@ GLFWvidmode* _glfwPlatformGetVideoModes(int* found) count = CFArrayGetCount(modes); result = (GLFWvidmode*) malloc(sizeof(GLFWvidmode) * count); + *found = 0; for (i = 0; i < count; i++) {