mirror of
https://github.com/glfw/glfw.git
synced 2024-11-25 22:14:34 +00:00
parent
d0e8d06d95
commit
ba761ab06e
@ -125,6 +125,14 @@ static void destroyContextNSGL(_GLFWwindow* window)
|
|||||||
{
|
{
|
||||||
@autoreleasepool {
|
@autoreleasepool {
|
||||||
|
|
||||||
|
if (window->context.nsgl.displayLink)
|
||||||
|
{
|
||||||
|
if (CVDisplayLinkIsRunning(window->context.nsgl.displayLink))
|
||||||
|
CVDisplayLinkStop(window->context.nsgl.displayLink);
|
||||||
|
|
||||||
|
CVDisplayLinkRelease(window->context.nsgl.displayLink);
|
||||||
|
}
|
||||||
|
|
||||||
[window->context.nsgl.pixelFormat release];
|
[window->context.nsgl.pixelFormat release];
|
||||||
window->context.nsgl.pixelFormat = nil;
|
window->context.nsgl.pixelFormat = nil;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user