浏览代码

Fixed indexing bug in Cocoa video mode enumeration.

Camilla Berglund 13 年之前
父节点
当前提交
4b9e616cf8
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      src/cocoa_fullscreen.m

+ 1 - 0
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++)
     {