simplify pixel format requirements for cocoa offscreen rendering
This commit is contained in:
parent
68542f037a
commit
9cb397fc92
1 changed files with 2 additions and 6 deletions
|
|
@ -28,13 +28,9 @@ impl HeadlessContext {
|
||||||
let (width, height) = builder.dimensions.unwrap_or((1024, 768));
|
let (width, height) = builder.dimensions.unwrap_or((1024, 768));
|
||||||
let context = unsafe {
|
let context = unsafe {
|
||||||
let attributes = [
|
let attributes = [
|
||||||
|
NSOpenGLPFAAccelerated as u32,
|
||||||
|
NSOpenGLPFAAllowOfflineRenderers as u32,
|
||||||
NSOpenGLPFADoubleBuffer 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
|
0
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue