mirror of https://github.com/mpv-player/mpv
cocoa: don't request a depth buffer size
This commit is contained in:
parent
77be8b1240
commit
f47f741c5e
|
@ -257,8 +257,6 @@ int vo_cocoa_create_window(struct vo *vo, uint32_t d_width,
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
attr[i++] = NSOpenGLPFADoubleBuffer; // double buffered
|
attr[i++] = NSOpenGLPFADoubleBuffer; // double buffered
|
||||||
attr[i++] = NSOpenGLPFADepthSize;
|
|
||||||
attr[i++] = (NSOpenGLPixelFormatAttribute)16; // 16 bit depth buffer
|
|
||||||
attr[i] = (NSOpenGLPixelFormatAttribute)0;
|
attr[i] = (NSOpenGLPixelFormatAttribute)0;
|
||||||
|
|
||||||
s->pixelFormat = [[[NSOpenGLPixelFormat alloc] initWithAttributes:attr] autorelease];
|
s->pixelFormat = [[[NSOpenGLPixelFormat alloc] initWithAttributes:attr] autorelease];
|
||||||
|
|
Loading…
Reference in New Issue