Page MenuHome

MacOS OpenGL bug in GHOST_ContextCGL::getSwapInterval
Closed, ResolvedPublic

Description

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) closed this task as Resolved.Dec 4 2018, 6:28 PM
This comment was removed by Niels (nielspl).
Niels (nielspl) reopened this task as Open.Dec 4 2018, 6:30 PM
diff --git a/intern/ghost/intern/GHOST_ContextCGL.mm b/intern/ghost/intern/GHOST_ContextCGL.mm
index 46993a1cd1d..d95eba339f7 100644
--- a/intern/ghost/intern/GHOST_ContextCGL.mm
+++ b/intern/ghost/intern/GHOST_ContextCGL.mm
@@ -143,7 +143,7 @@
 
                NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
 
-               [m_openGLContext setValues:&interval forParameter:NSOpenGLCPSwapInterval];
+               [m_openGLContext getValues:&interval forParameter:NSOpenGLCPSwapInterval];
 
                [pool drain];