소스 검색

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