From 6698e3f145d853d705ec7193c15b195987338ccc Mon Sep 17 00:00:00 2001 From: Benoit Girard Date: Wed, 21 Sep 2011 15:20:52 -0400 Subject: [PATCH] Bug 687864 - Part 2: Add offline renderer awareness for Mac OGL in plugins; r=jmuizelaar --- gfx/thebes/nsCoreAnimationSupport.mm | 3 +-- ipc/app/macbuild/Contents/Info.plist.in | 2 ++ 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/gfx/thebes/nsCoreAnimationSupport.mm b/gfx/thebes/nsCoreAnimationSupport.mm index 4d48d09761d8..3f85894719b4 100644 --- a/gfx/thebes/nsCoreAnimationSupport.mm +++ b/gfx/thebes/nsCoreAnimationSupport.mm @@ -451,9 +451,8 @@ nsresult nsCARenderer::SetupRenderer(void *aCALayer, int aWidth, int aHeight) { CARenderer* caRenderer = nsnull; CGLPixelFormatAttribute attributes[] = { - kCGLPFANoRecovery, kCGLPFAAccelerated, - kCGLPFAPBuffer, + kCGLPFAAllowOfflineRenderers, kCGLPFADepthSize, (CGLPixelFormatAttribute)24, (CGLPixelFormatAttribute)0 }; diff --git a/ipc/app/macbuild/Contents/Info.plist.in b/ipc/app/macbuild/Contents/Info.plist.in index 6af14a399f33..39fbd19d60d6 100644 --- a/ipc/app/macbuild/Contents/Info.plist.in +++ b/ipc/app/macbuild/Contents/Info.plist.in @@ -27,5 +27,7 @@ LSUIElement 1 + NSSupportsAutomaticGraphicsSwitching +