| Summary: | Asking for an OpenGL version greater than 3.2 gives you nothing in OSX | ||
|---|---|---|---|
| Product: | SDL | Reporter: | Thomas Hiatt <thomashiatt> |
| Component: | video | Assignee: | Sam Lantinga <slouken> |
| Status: | RESOLVED DUPLICATE | QA Contact: | Sam Lantinga <slouken> |
| Severity: | major | ||
| Priority: | P2 | ||
| Version: | 2.0.1 | ||
| Hardware: | x86 | ||
| OS: | Other | ||
If you ask for an OpenGL version greater than 3.2 you get nothing. As of OSX 10.9 OpenGL 4.1 is supported. /* Sadly, we'll have to update this as life progresses, since we need to set an enum for context profiles, not a context version number */ if (wantver > 0x0302) { SDL_SetError ("OpenGL > 3.2 is not supported on this platform"); return NULL; } pool = [[NSAutoreleasePool alloc] init]; /* specify a profile if we're on Lion (10.7) or later. */ if (data->osversion >= 0x1070) { NSOpenGLPixelFormatAttribute profile = kCGLOGLPVersion_Legacy; if (_this->gl_config.profile_mask == SDL_GL_CONTEXT_PROFILE_CORE) { if (wantver == 0x0302) { profile = kCGLOGLPVersion_3_2_Core; } } attr[i++] = kCGLPFAOpenGLProfile; attr[i++] = profile; } It should be changed to ask for a 3.2 core profile if the want version is greater than 3.2 rather than return nothing.