diff --git a/src/cocoa_fullscreen.m b/src/cocoa_fullscreen.m index e02cb2f2..bf58a930 100644 --- a/src/cocoa_fullscreen.m +++ b/src/cocoa_fullscreen.m @@ -215,7 +215,7 @@ GLFWvidmode* _glfwPlatformGetVideoModes(int* found) mode = (CGDisplayModeRef) CFArrayGetValueAtIndex(modes, i); if (modeIsGood(mode)) { - result[*found] vidmodeFromCGDisplayMode(mode); + result[*found] = vidmodeFromCGDisplayMode(mode); (*found)++; } }