Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
The Tor Project
Applications
Tor Browser
Commits
26df7f16
Commit
26df7f16
authored
Sep 21, 2011
by
Benoit Girard
Browse files
Bug 687864 - Part 1: Add offline renderer awareness for Mac OGL in browser; r=jmuizelaar
parent
e1f8e529
Changes
2
Hide whitespace changes
Inline
Side-by-side
browser/app/macbuild/Contents/Info.plist.in
View file @
26df7f16
...
...
@@ -214,5 +214,7 @@
<key>
x86_64
</key>
<string>
10.6.0
</string>
</dict>
<key>
NSSupportsAutomaticGraphicsSwitching
</key>
<true/>
</dict>
</plist>
gfx/thebes/GLContextProviderCGL.mm
View file @
26df7f16
...
...
@@ -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
];
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment