Cocoa Port: Fix the OpenGL renderer on macOS v10.7 Lion.
This commit is contained in:
parent
22801dac3c
commit
777329a993
|
@ -1883,10 +1883,13 @@ bool CreateOpenGLRenderer()
|
||||||
(CGLPixelFormatAttribute)0
|
(CGLPixelFormatAttribute)0
|
||||||
};
|
};
|
||||||
|
|
||||||
#ifdef MAC_OS_X_VERSION_10_7
|
|
||||||
// If we can support a 3.2 Core Profile context, then request that in our
|
// If we can support a 3.2 Core Profile context, then request that in our
|
||||||
// pixel format attributes.
|
// pixel format attributes.
|
||||||
useContext_3_2 = IsOSXVersionSupported(10, 7, 0);
|
#ifdef MAC_OS_X_VERSION_10_7
|
||||||
|
// As of 2021/09/03, testing has shown that macOS v10.7's OpenGL 3.2 shader
|
||||||
|
// compiler isn't very reliable, and so we're going to require macOS v10.8
|
||||||
|
// instead, which at least has a working shader compiler for OpenGL 3.2.
|
||||||
|
useContext_3_2 = IsOSXVersionSupported(10, 8, 0);
|
||||||
if (useContext_3_2)
|
if (useContext_3_2)
|
||||||
{
|
{
|
||||||
attrs[9] = kCGLPFAOpenGLProfile;
|
attrs[9] = kCGLPFAOpenGLProfile;
|
||||||
|
|
Loading…
Reference in New Issue