Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/intern
diff options
context:
space:
mode:
authorMike Erwin <significant.bit@gmail.com>2016-08-04 10:08:13 +0300
committerMike Erwin <significant.bit@gmail.com>2016-08-04 10:08:13 +0300
commit3d9cc4d3f174d01c96d65a4e9cd751699bcb8744 (patch)
treeb45bb82b3e95682758a5f19e751d4e57c2f8c091 /intern
parentb3cb7e2652306ccf6f1cd6f96396241937d17be5 (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.mm3
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);