From 4b9e616cf8dd2b9f020038df14be3c7b0722d37c Mon Sep 17 00:00:00 2001 From: Camilla Berglund Date: Thu, 2 Aug 2012 19:26:00 +0200 Subject: [PATCH] Fixed indexing bug in Cocoa video mode enumeration. --- src/cocoa_fullscreen.m | 1 + 1 file changed, 1 insertion(+) 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++) {