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 2342

Summary: OpenGL context 3.2+ on Mac OS X requires SDL_GL_CONTEXT_PROFILE_CORE
Product: SDL Reporter: BurnSpamAddress
Component: videoAssignee: Ryan C. Gordon <icculus>
Status: RESOLVED INVALID QA Contact: Sam Lantinga <slouken>
Severity: enhancement    
Priority: P2 CC: icculus
Version: 2.0.1   
Hardware: x86   
OS: Mac OS X 10.8   

Description BurnSpamAddress 2014-01-09 22:33:40 UTC
As documented by Apple, Mac OS X supports OpenGL 3.x/4.x only through the core profile.

With SDL 2.0.1, if you request a 3.2 profile you get an unexpected failure with little explanation for the reason and no obvious documentation on how to solve.

Based on the principle of least surprise, SDL should automatically use SDL_GL_CONTEXT_PROFILE_CORE when the user asks for a 3.x/4.x context on Mac OS X. This is the only supported configuration so it would make sense to be the default.
Comment 1 Ryan C. Gordon 2015-02-18 21:48:33 UTC
No, it is correct to fail here; if you don't ask for a Core profile but we give you one anyhow, your app might be expecting to use non-Core functionality that doesn't exist/won't work/will crash if used.

--ryan.