mirror of
https://github.com/glfw/glfw.git
synced 2025-10-04 05:36:35 +00:00
Remove whitespace
This commit is contained in:
parent
5cb1a48fa3
commit
2a95d58a00
@ -39,7 +39,7 @@ static CVReturn displayLinkCallback(CVDisplayLinkRef displayLink,
|
|||||||
void* userInfo)
|
void* userInfo)
|
||||||
{
|
{
|
||||||
_GLFWwindow* window = (_GLFWwindow *) userInfo;
|
_GLFWwindow* window = (_GLFWwindow *) userInfo;
|
||||||
|
|
||||||
const int setting = atomic_load(&window->context.nsgl.swapInterval);
|
const int setting = atomic_load(&window->context.nsgl.swapInterval);
|
||||||
if (setting > 0)
|
if (setting > 0)
|
||||||
{
|
{
|
||||||
@ -48,7 +48,7 @@ static CVReturn displayLinkCallback(CVDisplayLinkRef displayLink,
|
|||||||
[window->context.nsgl.swapIntervalCond signal];
|
[window->context.nsgl.swapIntervalCond signal];
|
||||||
[window->context.nsgl.swapIntervalCond unlock];
|
[window->context.nsgl.swapIntervalCond unlock];
|
||||||
}
|
}
|
||||||
|
|
||||||
return kCVReturnSuccess;
|
return kCVReturnSuccess;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -75,7 +75,7 @@ static void swapBuffersNSGL(_GLFWwindow* window)
|
|||||||
window->context.nsgl.swapIntervalsPassed = 0;
|
window->context.nsgl.swapIntervalsPassed = 0;
|
||||||
[window->context.nsgl.swapIntervalCond unlock];
|
[window->context.nsgl.swapIntervalCond unlock];
|
||||||
}
|
}
|
||||||
|
|
||||||
// ARP appears to be unnecessary, but this is future-proof
|
// ARP appears to be unnecessary, but this is future-proof
|
||||||
[window->context.nsgl.object flushBuffer];
|
[window->context.nsgl.object flushBuffer];
|
||||||
}
|
}
|
||||||
@ -358,7 +358,7 @@ GLFWbool _glfwCreateContextNSGL(_GLFWwindow* window,
|
|||||||
window->context.nsgl.object,
|
window->context.nsgl.object,
|
||||||
window->context.nsgl.pixelFormat);
|
window->context.nsgl.pixelFormat);
|
||||||
CVDisplayLinkStart(window->context.nsgl.displayLink);
|
CVDisplayLinkStart(window->context.nsgl.displayLink);
|
||||||
|
|
||||||
window->context.nsgl.swapIntervalCond = [NSCondition new];
|
window->context.nsgl.swapIntervalCond = [NSCondition new];
|
||||||
|
|
||||||
return GLFW_TRUE;
|
return GLFW_TRUE;
|
||||||
|
Loading…
Reference in New Issue
Block a user