We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 2754

Summary: Can't load OpenGL Context over 2.1 Mac OSX Yosemite
Product: SDL Reporter: Trevor <Trevornpeyton>
Component: videoAssignee: Sam Lantinga <slouken>
Status: RESOLVED INVALID QA Contact: Sam Lantinga <slouken>
Severity: blocker    
Priority: P2 CC: Trevornpeyton
Version: 2.0.3   
Hardware: x86   
OS: Other   

Description Trevor 2014-10-17 17:32:05 UTC
When I set this:
SDL_GL_SetAttribute(SDL_GL_CONTEXT_PROFILE_MASK, SDL_GL_CONTEXT_PROFILE_CORE);
Regardless of what versions I use my OpenGL version prints 4.1 but my OenGL context is never created. All of the commands (Except the version) return with an error code 1282.

SDL_GL_CreateContext does not return NULL and my drivers support 4.1 (core).

I run Intel HD Graphics 4000 - https://developer.apple.com/opengl/capabilities/
also - http://support.apple.com/kb/HT5942

I posted a question about for a more detailed explination (I didn't think it was an SDL bug) - http://stackoverflow.com/questions/26419606/sdl-cant-load-opengl-context-over-2-1-mac-osx-yosemite
Comment 1 Trevor 2014-10-17 23:16:55 UTC
It works fine. I was using OpenGL 2 commands without realizing it.