Do not use OpenGL Core Profile for software renderer on macOS

This commit is contained in:
alexey.lysiuk 2016-09-10 17:54:19 +03:00
parent 71f4bacbd7
commit 66c5121e38

View file

@ -483,7 +483,7 @@ NSOpenGLPixelFormat* CreatePixelFormat(const OpenGLProfile profile)
attributes[i++] = NSOpenGLPFAAllowOfflineRenderers; attributes[i++] = NSOpenGLPFAAllowOfflineRenderers;
} }
if (NSAppKitVersionNumber >= AppKit10_7 && OpenGLProfile::Core == profile) if (NSAppKitVersionNumber >= AppKit10_7 && OpenGLProfile::Core == profile && 1 == vid_renderer)
{ {
NSOpenGLPixelFormatAttribute profile = NSOpenGLProfileVersion3_2Core; NSOpenGLPixelFormatAttribute profile = NSOpenGLProfileVersion3_2Core;
const char* const glversion = Args->CheckValue("-glversion"); const char* const glversion = Args->CheckValue("-glversion");