From 7a43fa6ed7d7ec20e429983d903847bf16cee8e7 Mon Sep 17 00:00:00 2001 From: "alexey.lysiuk" Date: Sat, 7 Oct 2017 15:13:41 +0300 Subject: [PATCH] Cocoa window uses OpenGL 2.1 for software renderer --- src/posix/cocoa/i_video.mm | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/posix/cocoa/i_video.mm b/src/posix/cocoa/i_video.mm index 393ca6a89..b8765c1a6 100644 --- a/src/posix/cocoa/i_video.mm +++ b/src/posix/cocoa/i_video.mm @@ -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