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
1 changed files with 1 additions and 1 deletions

View File

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