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 - OpenGL context 3.2+ on Mac OS X requires SDL_GL_CONTEXT_PROFILE_CORE
Summary: OpenGL context 3.2+ on Mac OS X requires SDL_GL_CONTEXT_PROFILE_CORE
Status: RESOLVED INVALID
Alias: None
Product: SDL
Classification: Unclassified
Component: video (show other bugs)
Version: 2.0.1
Hardware: x86 Mac OS X 10.8
: P2 enhancement
Assignee: Ryan C. Gordon
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-01-09 22:33 UTC by BurnSpamAddress
Modified: 2015-02-18 21:48 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.