diff options
author | Mike Erwin <significant.bit@gmail.com> | 2016-08-04 10:08:13 +0300 |
---|---|---|
committer | Mike Erwin <significant.bit@gmail.com> | 2016-08-04 10:08:13 +0300 |
commit | 3d9cc4d3f174d01c96d65a4e9cd751699bcb8744 (patch) | |
tree | b45bb82b3e95682758a5f19e751d4e57c2f8c091 /intern | |
parent | b3cb7e2652306ccf6f1cd6f96396241937d17be5 (diff) |
support automatic GPU switching on Mac
First attempt. On my laptop (Intel + nVidia) Blender still switches to
nVidia at launch time.
Diffstat (limited to 'intern')
-rw-r--r-- | intern/ghost/intern/GHOST_ContextCGL.mm | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/intern/ghost/intern/GHOST_ContextCGL.mm b/intern/ghost/intern/GHOST_ContextCGL.mm index 7642bad9fac..6a39d76e752 100644 --- a/intern/ghost/intern/GHOST_ContextCGL.mm +++ b/intern/ghost/intern/GHOST_ContextCGL.mm @@ -209,8 +209,7 @@ static void makeAttribList( attribs.push_back(NSOpenGLPFAAccelerated); } - /* Removed to allow 10.4 builds, and 2 GPUs rendering is not used anyway */ - //attribs.push_back(NSOpenGLPFAAllowOfflineRenderers); + attribs.push_back(NSOpenGLPFAAllowOfflineRenderers); // for automatic GPU switching attribs.push_back(NSOpenGLPFADepthSize); attribs.push_back((NSOpenGLPixelFormatAttribute) 32); |