osx: only use accelerated backends

This commit is contained in:
degasus 2013-03-11 16:36:07 +01:00
parent b43c2e4d13
commit e1ca002937
1 changed files with 1 additions and 1 deletions

View File

@ -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) {