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

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Topics - 42yeah

Pages: [1]
Window / Issues with window initializing using sf::ContextSettings
« on: March 03, 2018, 12:51:45 pm »
Hi! I'm quite a newbie to sfml, and here's what I got when I am trying to initialize a sf::RenderWindow with an sf::ContextSettings:

Error. Unable to create the context. Retrying without shared context.
Warning. New context created without shared context.

Also the triangle I want is not displayed on the screen...

So here's the ContextSettings:
sf::ContextSettings settings;
settings.depthBits = 24;
settings.stencilBits = 8;
settings.antialiasingLevel = 4;
settings.majorVersion = 3;
settings.minorVersion = 3;
settings.attributeFlags = sf::ContextSettings::Core;

And here's the complete code, if you are interested:
(click to show/hide)

Thanks a HUGE LOT for your help!!!
I'm using macOS High Sierra.

Pages: [1]