mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-11 15:22:15 +00:00
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:
parent
63993dee96
commit
94fec26cb6
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue