Fix small mistake in GL context creation on macOS causing version 3.2 to
be considered invalid
This commit is contained in:
parent
92951b6f04
commit
81d1ccb8de
|
@ -51,7 +51,7 @@ bool ContextAGL::Initialize(const Version* versions_to_try, size_t num_versions_
|
|||
}
|
||||
else if (cv.profile == Profile::Core)
|
||||
{
|
||||
if (cv.major_version > 4 || cv.minor_version > 1)
|
||||
if (cv.major_version > 4 && cv.minor_version > 1)
|
||||
continue;
|
||||
|
||||
const NSOpenGLPixelFormatAttribute profile = (cv.major_version > 3 || cv.minor_version > 2) ? NSOpenGLProfileVersion4_1Core : NSOpenGLProfileVersion3_2Core;
|
||||
|
|
Loading…
Reference in New Issue