(OSX) setWantsBestResolutionOpenGLSurface - OSX 10.7 and up

This commit is contained in:
twinaphex 2015-07-18 15:46:23 +02:00
parent 5bc03fb3a8
commit f02f1ebc8f

View File

@ -151,7 +151,9 @@ static bool cocoagl_gfx_ctx_init(void *data)
#if defined(HAVE_COCOA)
CocoaView *g_view = (CocoaView*)nsview_get_ptr();
#if MAC_OS_X_VERSION_10_7
[g_view setWantsBestResolutionOpenGLSurface:YES];
#endif
NSOpenGLPixelFormatAttribute attributes [] = {
NSOpenGLPFAColorSize, 24,
NSOpenGLPFADoubleBuffer,