Fixed runtime warning on OS X 10.4 Tiger

The 'invalid pixel format attribute' warning was introduced with automated graphics switching control
This commit is contained in:
alexey.lysiuk 2015-12-31 11:00:05 +02:00
parent 63993dee96
commit 94fec26cb6

View file

@ -420,7 +420,7 @@ CocoaVideo::CocoaVideo(const int multisample)
attributes[i++] = NSOpenGLPFAStencilSize; attributes[i++] = NSOpenGLPFAStencilSize;
attributes[i++] = NSOpenGLPixelFormatAttribute(8); attributes[i++] = NSOpenGLPixelFormatAttribute(8);
if (!vid_autoswitch) if (NSAppKitVersionNumber >= AppKit10_5 && !vid_autoswitch)
{ {
attributes[i++] = NSOpenGLPFAAllowOfflineRenderers; attributes[i++] = NSOpenGLPFAAllowOfflineRenderers;
} }