mirror of
https://github.com/italicsjenga/winit-sonoma-fix.git
synced 2024-12-24 22:31:30 +11:00
simplify pixel format requirements for cocoa offscreen rendering
This commit is contained in:
parent
68542f037a
commit
9cb397fc92
|
@ -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…
Reference in a new issue