mirror of
https://github.com/libretro/RetroArch
synced 2025-04-01 04:20:27 +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)
|
#if defined(HAVE_COCOA)
|
||||||
CocoaView *g_view = (CocoaView*)nsview_get_ptr();
|
CocoaView *g_view = (CocoaView*)nsview_get_ptr();
|
||||||
#if MAC_OS_X_VERSION_10_7
|
if ([g_view respondsToSelector: @selector(setWantsBestResolutionOpenGLSurface:)])
|
||||||
[g_view setWantsBestResolutionOpenGLSurface:YES];
|
[g_view setWantsBestResolutionOpenGLSurface:YES];
|
||||||
#endif
|
|
||||||
NSOpenGLPixelFormatAttribute attributes [] = {
|
NSOpenGLPixelFormatAttribute attributes [] = {
|
||||||
NSOpenGLPFAColorSize, 24,
|
NSOpenGLPFAColorSize, 24,
|
||||||
NSOpenGLPFADoubleBuffer,
|
NSOpenGLPFADoubleBuffer,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user