mirror of
https://github.com/libretro/RetroArch.git
synced 2024-11-24 16:39:43 +00:00
setWantsBestResolutionOpenGLSurface - determine at runtime if we can call
this instead of compile-time
This commit is contained in:
parent
21dc363e0f
commit
dfe79c3fcd
@ -199,9 +199,9 @@ static void *cocoagl_gfx_ctx_init(void *video_driver)
|
||||
|
||||
#if defined(HAVE_COCOA)
|
||||
CocoaView *g_view = (CocoaView*)nsview_get_ptr();
|
||||
#if MAC_OS_X_VERSION_10_7
|
||||
[g_view setWantsBestResolutionOpenGLSurface:YES];
|
||||
#endif
|
||||
if ([g_view respondsToSelector: @selector(setWantsBestResolutionOpenGLSurface:)])
|
||||
[g_view setWantsBestResolutionOpenGLSurface:YES];
|
||||
|
||||
NSOpenGLPixelFormatAttribute attributes [] = {
|
||||
NSOpenGLPFAColorSize, 24,
|
||||
NSOpenGLPFADoubleBuffer,
|
||||
|
Loading…
Reference in New Issue
Block a user