Commits
Ryan Schmidt authored 93841773d08
1 + | https://www.gryphel.com/c/mail/v8.html#m0 |
2 + | https://developer.apple.com/library/archive/qa/qa1734/ |
3 + | https://developer.apple.com/library/archive/technotes/tn2229/ |
4 + | --- src/Info.plist.orig 2018-06-22 05:58:58.000000000 -0500 |
5 + | +++ src/Info.plist 2018-06-22 06:01:11.000000000 -0500 |
6 + | |
7 + | <plist version="1.0"> |
8 + | <dict> |
9 + | + <key>NSSupportsAutomaticGraphicsSwitching</key> |
10 + | + <true/> |
11 + | <key>CFBundleDevelopmentRegion</key> |
12 + | <string>English</string> |
13 + | --- src/OSGLUCCO.m.orig 2018-06-09 03:53:21.000000000 -0500 |
14 + | +++ src/OSGLUCCO.m 2018-06-22 06:33:03.000000000 -0500 |
15 + | |
16 + | |
17 + | typedef struct __CFError * CFErrorRef; |
18 + | |
19 + | +#define NSOpenGLPFAAllowOfflineRenderers (NSOpenGLPixelFormatAttribute)96 |
20 + | + |
21 + | #endif |
22 + | |
23 + | #if MAC_OS_X_VERSION_10_6 > MAC_OS_X_VERSION_MAX_ALLOWED |
24 + | |
25 + | NSOpenGLPixelFormatAttribute attr[] = { |
26 + | + NSOpenGLPFAAllowOfflineRenderers, |
27 + | 0}; |
28 + | |
29 + | fmt = [[NSOpenGLPixelFormat alloc] initWithAttributes:attr]; |
30 + | +#if MAC_OS_X_VERSION_10_5 > MAC_OS_X_VERSION_MIN_REQUIRED |
31 + | + if (nil == fmt) { |
32 + | + /* NSOpenGLPFAAllowOfflineRenderers is not supported; remove it */ |
33 + | + attr[0] = (NSOpenGLPixelFormatAttribute)0; |
34 + | + fmt = [[NSOpenGLPixelFormat alloc] initWithAttributes:attr]; |
35 + | + } |
36 + | +#endif |
37 + | if (nil == fmt) { |