Fix small mistake in GL context creation on macOS causing version 3.2 to

be considered invalid
This commit is contained in:
Nadia Holmquist Pedersen 2022-10-13 19:34:55 +02:00
parent 92951b6f04
commit 81d1ccb8de
1 changed files with 1 additions and 1 deletions

View File

@ -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;