1
0
Fork 0
mirror of https://github.com/gwm17/glfw.git synced 2024-11-23 10:48:51 -05:00

Fixed indexing bug in Cocoa video mode enumeration.

This commit is contained in:
Camilla Berglund 2012-08-02 19:26:00 +02:00
parent 5f5b463766
commit 4b9e616cf8

View File

@ -207,6 +207,7 @@ GLFWvidmode* _glfwPlatformGetVideoModes(int* found)
count = CFArrayGetCount(modes); count = CFArrayGetCount(modes);
result = (GLFWvidmode*) malloc(sizeof(GLFWvidmode) * count); result = (GLFWvidmode*) malloc(sizeof(GLFWvidmode) * count);
*found = 0;
for (i = 0; i < count; i++) for (i = 0; i < count; i++)
{ {