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

Author Topic: OpenGL 3.3... On OS X... with an Intel HD Graphics 4000.... HOW?  (Read 2701 times)

0 Members and 1 Guest are viewing this topic.

Infinite

  • Newbie
  • *
  • Posts: 4
    • View Profile
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?

Jebbs

  • Sr. Member
  • ****
  • Posts: 358
  • DSFML Developer
    • View Profile
    • Email
Re: OpenGL 3.3... On OS X... with an Intel HD Graphics 4000.... HOW?
« Reply #1 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
DSFML - SFML for the D Programming Language.

Infinite

  • Newbie
  • *
  • Posts: 4
    • View Profile
Re: OpenGL 3.3... On OS X... with an Intel HD Graphics 4000.... HOW?
« Reply #2 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.

Jebbs

  • Sr. Member
  • ****
  • Posts: 358
  • DSFML Developer
    • View Profile
    • Email
Re: OpenGL 3.3... On OS X... with an Intel HD Graphics 4000.... HOW?
« Reply #3 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.
DSFML - SFML for the D Programming Language.

Infinite

  • Newbie
  • *
  • Posts: 4
    • View Profile
Re: OpenGL 3.3... On OS X... with an Intel HD Graphics 4000.... HOW?
« Reply #4 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.

maidan

  • Newbie
  • *
  • Posts: 1
    • View Profile
Re: OpenGL 3.3... On OS X... with an Intel HD Graphics 4000.... HOW?
« Reply #5 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.
« Last Edit: March 06, 2014, 06:07:04 am by maidan »

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 10819
    • View Profile
    • development blog
    • Email
AW: OpenGL 3.3... On OS X... with an Intel HD Graphics 4000.... HOW?
« Reply #6 on: March 06, 2014, 08:14:49 am »
How do you check the version you got?
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

 

anything