diff options
author | Andreas Gal <andreas.gal@gmail.com> | 2015-02-23 22:42:06 +0100 |
---|---|---|
committer | Andreas Gal <andreas.gal@gmail.com> | 2015-02-23 22:42:06 +0100 |
commit | 9cb397fc928cbc0a1009c494ad7ff8fa6c3db351 (patch) | |
tree | 73c9ccfe2425b5ec490f7a86f9b1daea6ae85eb8 /src | |
parent | 68542f037aac21a167929449242054877f6f6d96 (diff) | |
download | glutin-9cb397fc928cbc0a1009c494ad7ff8fa6c3db351.tar.gz glutin-9cb397fc928cbc0a1009c494ad7ff8fa6c3db351.zip |
simplify pixel format requirements for cocoa offscreen rendering
Diffstat (limited to 'src')
-rw-r--r-- | src/cocoa/headless.rs | 8 |
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 ]; |