aboutsummaryrefslogtreecommitdiffstats
path: root/src/cocoa
diff options
context:
space:
mode:
authortomaka <pierre.krieger1708@gmail.com>2015-03-01 12:03:48 +0100
committertomaka <pierre.krieger1708@gmail.com>2015-03-01 12:03:48 +0100
commit65046ffc41790e9a7c4fe26995c2751e8a940af6 (patch)
tree31f2165235278417b673ce6127266b3ca0625198 /src/cocoa
parentaf4662d84c68b9bb21b9b05d61a9b55f31ae88df (diff)
parent16a934fc94c6e114de8c4e0ca4c7e504fef90eb8 (diff)
downloadglutin-65046ffc41790e9a7c4fe26995c2751e8a940af6.tar.gz
glutin-65046ffc41790e9a7c4fe26995c2751e8a940af6.zip
Merge pull request #298 from andreasgal/master
Make headless rendering work on Mac OS X 10.10
Diffstat (limited to 'src/cocoa')
-rw-r--r--src/cocoa/headless.rs8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/cocoa/headless.rs b/src/cocoa/headless.rs
index cc19457..fb91a0a 100644
--- a/src/cocoa/headless.rs
+++ b/src/cocoa/headless.rs
@@ -28,13 +28,9 @@ impl HeadlessContext {
let (width, height) = builder.dimensions.unwrap_or((1024, 768));
let context = unsafe {
let attributes = [
+ NSOpenGLPFAAccelerated as u32,
+ NSOpenGLPFAAllowOfflineRenderers as u32,
NSOpenGLPFADoubleBuffer as u32,
- NSOpenGLPFAClosestPolicy as u32,
- NSOpenGLPFAColorSize as u32, 24,
- NSOpenGLPFAAlphaSize as u32, 8,
- NSOpenGLPFADepthSize as u32, 24,
- NSOpenGLPFAStencilSize as u32, 8,
- NSOpenGLPFAOffScreen as u32,
0
];