Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot create 3.3 or 4.1 context on Mac OS X 10.9 #1257

Closed
SDLBugzilla opened this issue Feb 10, 2021 · 0 comments
Closed

Cannot create 3.3 or 4.1 context on Mac OS X 10.9 #1257

SDLBugzilla opened this issue Feb 10, 2021 · 0 comments
Labels
duplicate This issue or pull request already exists

Comments

@SDLBugzilla
Copy link
Collaborator

This bug report was migrated from our old Bugzilla tracker.

Reported in version: 2.0.1
Reported for operating system, platform: Mac OS X (All), x86

Comments on the original bug report:

On 2013-12-03 06:54:49 +0000, wrote:

Mac OS X 10.9 adds support for OpenGL 3.3 and 4.1 [1]. However, SDL refuses to create any context with version > 3.2 with the message "OpenGL > 3.2 is not supported on this platform".

If I create a 3.2 context, I get version 4.1. However, the error message is incorrect and misleading.

SDL should probably try to create the context and only report a failure if that fails.

[1] https://developer.apple.com/graphicsimaging/opengl/capabilities/

On 2013-12-03 07:51:29 +0000, Sam Lantinga wrote:

Hey Ryan, didn't you already fix this?

On 2013-12-03 08:54:54 +0000, Ryan C. Gordon wrote:

(In reply to Sam Lantinga from comment # 1)

Hey Ryan, didn't you already fix this?

I did, it's in Bug # 1942.

(In reply to BurnSpamAddress from comment # 0)

SDL should probably try to create the context and only report a failure if
that fails.

OS X doesn't offer a way to ask for an arbitrary version: just explicitly 3.2, and now with Mavericks, 4.1. The numbers happens to match up somewhat (0x0302 and 0x0401, I think), but we can't safely plug arbitrary numbers in there and expect it to work, so we have to update our list of available versions every time a new OS X comes out.

--ryan.

*** This bug has been marked as a duplicate of bug 1942 ***

On 2013-12-03 09:06:13 +0000, Alex Szpakowski wrote:

Actually, SDL's code for requesting a 4.1 context on OS X always gives back the software renderer for me, despite the fact that I can create a 4.1 context by requesting 3.2.
The value SDL uses as an NSOpenGLPixelFormatAttribute when requesting 4.1 isn't actually officially supported, apparently.

I have more description and a patch here: https://bugzilla.libsdl.org/show_bug.cgi?id=2197#c2

@SDLBugzilla SDLBugzilla added bug duplicate This issue or pull request already exists labels Feb 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

1 participant