summaryrefslogtreecommitdiffstats
path: root/src/core/macos_context_type_helper.mm
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/macos_context_type_helper.mm')
-rw-r--r--src/core/macos_context_type_helper.mm5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/core/macos_context_type_helper.mm b/src/core/macos_context_type_helper.mm
index c814d2849..4c9302482 100644
--- a/src/core/macos_context_type_helper.mm
+++ b/src/core/macos_context_type_helper.mm
@@ -47,3 +47,8 @@ bool isCurrentContextSoftware()
[NSOpenGLContext.currentContext getValues:&rendererID forParameter:NSOpenGLContextParameterCurrentRendererID];
return (rendererID & kCGLRendererIDMatchingMask) == kCGLRendererGenericFloatID;
}
+
+void* cglContext(NSOpenGLContext *nsOpenGLContext)
+{
+ return [nsOpenGLContext CGLContextObj];
+}