SFML community forums
Help => Graphics => Topic started by: mercurio7891 on October 29, 2011, 12:18:22 pm
-
Hi, just wanted to ask any mac user out there if Lion officially support opengl 3 contexts?
I heard rumors on the web that Lion have supports up till 3.2 contexts.
However I can't seems to create SFML using a 3.[0|1|2] context. It always defaults to a 2.1 context
My hardware does support opengl 3.3 as I have created a 3.3 context in windows using boot camp
regards
-
After looking around the web, it seems that Lion only supports the 3.2 core profile.
http://www.opengl.org/wiki/Core_And_Compatibility_in_Contexts
"The 3.0 form of context creation allows the user to ask for a profile. Initially, only one profile was available: core. In 3.2, a new profile was added: compatibility. An implementation is only required to define core, so compatibility is not guaranteed to be available. However, it's a safe bet that it is (unless you're using Mac OSX 10.7, in which case 3.2 core or 2.1 are your only choices)."
Furthermore using this program [1] revealed that my current OS Lion would support up to 3.2 core profile. However it does not have support for 3.2 compatibility profile.
As I have not used SFML for quite awhile. I was wondering if SFML is trying to create the context in compatibility profile? Is this the reason or am I missing something?
[1] http://itunes.apple.com/us/app/opengl-extensions-viewer/id444052073?mt=12
regards
-
I was wondering if SFML is trying to create the context in compatibility profile?
Yes it does.
-
Is it possible to choose to create in Core profile instead? I would like to create in 3.2 profile while in OS X.
regards
-
Not yet, because SFML uses deprecated functions internally.
-
Some more details for the curious among us : https://github.com/SFML/SFML/issues/84