Page MenuHome

MacOS OpenGL bug in GHOST_ContextCGL::getSwapInterval
Closed, ResolvedPublic


Hi. I just noticed a typing error of a single character.

In GHOST_ContextCGL::getSwapInterval(int &intervalOut):

[m_openGLContext setValues:&interval forParameter:NSOpenGLCPSwapInterval];

Should be:

[m_openGLContext getValues:&interval forParameter:NSOpenGLCPSwapInterval];

(not tested)

Event Timeline

Niels (nielspl) changed the task status from Unknown Status to Resolved.Dec 4 2018, 6:28 PM
This comment was removed by Niels (nielspl).
Niels (nielspl) changed the task status from Resolved to Unknown Status.Dec 4 2018, 6:30 PM
diff --git a/intern/ghost/intern/ b/intern/ghost/intern/
index 46993a1cd1d..d95eba339f7 100644
--- a/intern/ghost/intern/
+++ b/intern/ghost/intern/
@@ -143,7 +143,7 @@
                NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
-               [m_openGLContext setValues:&interval forParameter:NSOpenGLCPSwapInterval];
+               [m_openGLContext getValues:&interval forParameter:NSOpenGLCPSwapInterval];
                [pool drain];