Explorar o código

Fixed indexing bug in Cocoa video mode enumeration.

Camilla Berglund %!s(int64=13) %!d(string=hai) anos
pai
achega
4b9e616cf8
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  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++)
     {