mirror of
https://github.com/libretro/RetroArch
synced 2025-02-01 00:32:46 +00:00
(OSX) ifdef NSOpenGLPFAOpenGLProfile with MAC_OS_X_VERSION_10_7 - Core GL
profile only available from 10.7 and up
This commit is contained in:
parent
6670766bb6
commit
9b34000434
@ -311,8 +311,12 @@ bool apple_gfx_ctx_bind_api(enum gfx_ctx_api api, unsigned major, unsigned minor
|
|||||||
|
|
||||||
NSOpenGLPixelFormatAttribute attributes [] = {
|
NSOpenGLPixelFormatAttribute attributes [] = {
|
||||||
NSOpenGLPFADoubleBuffer, // double buffered
|
NSOpenGLPFADoubleBuffer, // double buffered
|
||||||
NSOpenGLPFADepthSize, (NSOpenGLPixelFormatAttribute)16, // 16 bit depth buffer
|
NSOpenGLPFADepthSize,
|
||||||
(major || minor) ? NSOpenGLPFAOpenGLProfile : 0, (major << 12) | (minor << 8),
|
(NSOpenGLPixelFormatAttribute)16, // 16 bit depth buffer
|
||||||
|
#ifdef MAC_OS_X_VERSION_10_7
|
||||||
|
(major || minor) ? NSOpenGLPFAOpenGLProfile : 0,
|
||||||
|
(major << 12) | (minor << 8),
|
||||||
|
#endif
|
||||||
(NSOpenGLPixelFormatAttribute)nil
|
(NSOpenGLPixelFormatAttribute)nil
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user