osx: only use accelerated backends
This commit is contained in:
parent
b43c2e4d13
commit
e1ca002937
|
@ -48,7 +48,7 @@ bool cInterfaceAGL::Create(void *&window_handle)
|
||||||
|
|
||||||
NSRect size;
|
NSRect size;
|
||||||
NSUInteger style = NSMiniaturizableWindowMask;
|
NSUInteger style = NSMiniaturizableWindowMask;
|
||||||
NSOpenGLPixelFormatAttribute attr[4] = { NSOpenGLPFADoubleBuffer, NSOpenGLPFAOpenGLProfile, NSOpenGLProfileVersion3_2Core, 0 };
|
NSOpenGLPixelFormatAttribute attr[] = { NSOpenGLPFADoubleBuffer, NSOpenGLPFAOpenGLProfile, NSOpenGLProfileVersion3_2Core, NSOpenGLPFAAccelerated, 0 };
|
||||||
NSOpenGLPixelFormat *fmt = [[NSOpenGLPixelFormat alloc]
|
NSOpenGLPixelFormat *fmt = [[NSOpenGLPixelFormat alloc]
|
||||||
initWithAttributes: attr];
|
initWithAttributes: attr];
|
||||||
if (fmt == nil) {
|
if (fmt == nil) {
|
||||||
|
|
Loading…
Reference in New Issue