SFML community forums

Help => Window => Topic started by: Infinite on March 01, 2014, 11:26:35 pm

Title: OpenGL 3.3... On OS X... with an Intel HD Graphics 4000.... HOW?
Post by: Infinite on March 01, 2014, 11:26:35 pm
I know I'm sort of asking the impossible, but after half an hour of browsing the source code, I still have no idea how I'm ever going to do this... Do any of you know?
Title: Re: OpenGL 3.3... On OS X... with an Intel HD Graphics 4000.... HOW?
Post by: Jebbs on March 01, 2014, 11:55:47 pm
I'm guessing you meant OpenGL 3.2?

Anyways, it is currently not supported on OSX(Unless I am mistaken).

More information on the issue here: https://github.com/SFML/SFML/issues/84
Title: Re: OpenGL 3.3... On OS X... with an Intel HD Graphics 4000.... HOW?
Post by: Infinite on March 02, 2014, 07:06:23 pm
No, I mean 3.3 (4.1 would be ideal). Mavericks supports OpenGL up to 4.1, and so does the 4000.
Title: Re: OpenGL 3.3... On OS X... with an Intel HD Graphics 4000.... HOW?
Post by: Jebbs on March 02, 2014, 07:14:50 pm
Ah, sorry. Don't really know much about OSX. I think what I said is still the case though, unless it started to use compatibility profiles instead of only supporting the core profiles.
Title: Re: OpenGL 3.3... On OS X... with an Intel HD Graphics 4000.... HOW?
Post by: Infinite on March 02, 2014, 08:23:33 pm
Well, it works now. I had to play around wiith that patch a little, though. It only works when you just add

attrs.push_back(NSOpenGLPFAOpenGLProfile);
attrs.push_back(NSOpenGLProfileVersion3_2Core);

instead of the whole if/else.
Title: Re: OpenGL 3.3... On OS X... with an Intel HD Graphics 4000.... HOW?
Post by: maidan on March 06, 2014, 05:58:21 am
Hey I'm having a very similar issue. I just downloaded and implemented SFML, replacing the SDL 2.0 library due to excessive dependencies.

I can't get myself a 3.2 context no matter what I do, here's the code I use:

        sf::ContextSettings windowSettings;
        windowSettings.majorVersion = 3;
        windowSettings.minorVersion = 2;

        windowMain.create(sf::VideoMode(app->getWidth(), app->getHeight()), app->getCaption(), sf::Style::Close, windowSettings);
 

Could you please help me? I saw the other link but I don't understand - it's 3 years old! Is that what I should follow to get what I want? Seriously I have to re-compile the whole framework?

EDIT: I'm on clean install of OSX Mavericks, downloaded SFML from the main website a few hours ago.
Title: AW: OpenGL 3.3... On OS X... with an Intel HD Graphics 4000.... HOW?
Post by: eXpl0it3r on March 06, 2014, 08:14:49 am
How do you check the version you got?