Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: [OS X] Lion and opengl 3  (Read 3653 times)

0 Members and 1 Guest are viewing this topic.

mercurio7891

  • Jr. Member
  • **
  • Posts: 89
    • View Profile
[OS X] Lion and opengl 3
« 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

mercurio7891

  • Jr. Member
  • **
  • Posts: 89
    • View Profile
[OS X] Lion and opengl 3
« Reply #1 on: October 29, 2011, 08:18:44 pm »
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

Quote

"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

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
[OS X] Lion and opengl 3
« Reply #2 on: October 29, 2011, 11:40:52 pm »
Quote
I was wondering if SFML is trying to create the context in compatibility profile?

Yes it does.
Laurent Gomila - SFML developer

mercurio7891

  • Jr. Member
  • **
  • Posts: 89
    • View Profile
[OS X] Lion and opengl 3
« Reply #3 on: October 31, 2011, 05:03:30 am »
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

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
[OS X] Lion and opengl 3
« Reply #4 on: October 31, 2011, 07:44:57 am »
Not yet, because SFML uses deprecated functions internally.
Laurent Gomila - SFML developer

Hiura

  • SFML Team
  • Hero Member
  • *****
  • Posts: 4321
    • View Profile
    • Email
[OS X] Lion and opengl 3
« Reply #5 on: October 31, 2011, 07:11:36 pm »
Some more details for the curious among us : https://github.com/SFML/SFML/issues/84
SFML / OS X developer

 

anything