diff options
author | Michal Klocek <michal.klocek@qt.io> | 2020-08-04 09:26:14 +0200 |
---|---|---|
committer | Michal Klocek <michal.klocek@qt.io> | 2020-08-05 14:00:57 +0200 |
commit | 2ef8e66ffd61e18a2ce6933cc3b8d53f954b2a4a (patch) | |
tree | a4edcb81466d3b30456724b2cd962e0ef5406d23 /src/core/macos_context_type_helper.mm | |
parent | 3ece9910a6b29fd6061c8fa3cf5f69970a93ca58 (diff) |
Fix not working acceleration on Mac
Since 6ff79478a in base we no longer are able to query
for 'cqlcontextobj' add helper call for CGLContextObj.
Change-Id: Ie1992ab7a0e525c2c6b5f9a67ce354a493e993e8
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
Reviewed-by: Michael Brüning <michael.bruning@qt.io>
Diffstat (limited to 'src/core/macos_context_type_helper.mm')
-rw-r--r-- | src/core/macos_context_type_helper.mm | 5 |
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]; +} |