mirror of
https://github.com/glfw/glfw.git
synced 2024-11-10 00:51:47 +00:00
NSGL: Disable swap interval
Swap interval now uses CVDisplayLink.
This commit is contained in:
parent
224e9205e0
commit
28f118f4de
@ -364,6 +364,10 @@ GLFWbool _glfwCreateContextNSGL(_GLFWwindow* window,
|
||||
if (window->ns.retina)
|
||||
[window->ns.view setWantsBestResolutionOpenGLSurface:YES];
|
||||
|
||||
GLint interval = 0;
|
||||
[window->context.nsgl.object setValues:&interval
|
||||
forParameter:NSOpenGLContextParameterSwapInterval];
|
||||
|
||||
[window->context.nsgl.object setView:window->ns.view];
|
||||
|
||||
window->context.nsgl.swapIntervalCond = [NSCondition new];
|
||||
|
Loading…
Reference in New Issue
Block a user