support automatic GPU switching on Mac
First attempt. On my laptop (Intel + nVidia) Blender still switches to nVidia at launch time.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user