|
|
@ -83,11 +83,10 @@ static void swapIntervalNSGL(int interval) |
|
|
|
@autoreleasepool { |
|
|
|
@autoreleasepool { |
|
|
|
|
|
|
|
|
|
|
|
_GLFWwindow* window = _glfwPlatformGetTls(&_glfw.contextSlot); |
|
|
|
_GLFWwindow* window = _glfwPlatformGetTls(&_glfw.contextSlot); |
|
|
|
if (window) |
|
|
|
assert(window != NULL); |
|
|
|
{ |
|
|
|
|
|
|
|
[window->context.nsgl.object setValues:&interval |
|
|
|
[window->context.nsgl.object setValues:&interval |
|
|
|
forParameter:NSOpenGLContextParameterSwapInterval]; |
|
|
|
forParameter:NSOpenGLContextParameterSwapInterval]; |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} // autoreleasepool |
|
|
|
} // autoreleasepool |
|
|
|
} |
|
|
|
} |
|
|
|