Commit 26df7f16 authored by Benoit Girard's avatar Benoit Girard
Browse files

Bug 687864 - Part 1: Add offline renderer awareness for Mac OGL in browser; r=jmuizelaar

parent e1f8e529
......@@ -214,5 +214,7 @@
<key>x86_64</key>
<string>10.6.0</string>
</dict>
<key>NSSupportsAutomaticGraphicsSwitching</key>
<true/>
</dict>
</plist>
......@@ -86,12 +86,13 @@ public:
if (mPixelFormat == nsnull) {
NSOpenGLPixelFormatAttribute attribs[] = {
NSOpenGLPFAAccelerated,
NSOpenGLPFAAllowOfflineRenderers,
NSOpenGLPFADoubleBuffer,
(NSOpenGLPixelFormatAttribute)nil
};
if (!gUseDoubleBufferedWindows) {
attribs[1] = (NSOpenGLPixelFormatAttribute)nil;
attribs[2] = (NSOpenGLPixelFormatAttribute)nil;
}
mPixelFormat = [[NSOpenGLPixelFormat alloc] initWithAttributes:attribs];
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment