Cocoa window uses OpenGL 2.1 for software renderer

This commit is contained in:
alexey.lysiuk 2017-10-07 15:13:41 +03:00
parent 557958577b
commit 7a43fa6ed7

View file

@ -533,6 +533,11 @@ CocoaVideo::CocoaVideo()
// There is no support for OpenGL 3.3 before Mavericks
defaultProfile = NSOpenGLProfileVersionLegacy;
}
else if (0 == vid_renderer && 0 == vid_glswfb)
{
// Software renderer uses OpenGL 2.1 for blitting
defaultProfile = NSOpenGLProfileVersionLegacy;
}
else if (const char* const glversion = Args->CheckValue("-glversion"))
{
// Check for explicit version specified in command line