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

Author Topic: The created opengl context does not fully meet the settings that were requested  (Read 6019 times)

0 Members and 1 Guest are viewing this topic.

sggocu88

  • Newbie
  • *
  • Posts: 13
    • View Profile
Hi. i try do draw an anti aliased circle, but i get this error in consol:

Warning: The created opengl context does not fully meet the settings that were requested
Requested: version=1.1 ; depth bits=0 ; stencil bits=0; AA level = 8 ; core=false ; debug=false; sRGB=false
Created: version=2.1 ; depth bits=0 ; stencil bits=0; AA level = 0 ; core=false ; debug=false; sRGB=false

In my graphics card settings anti aliasing is enabled , i tried different values for anti aliasing , but don't work.
Code :

#include <SFML/Graphics.hpp>

int main()
{
    sf::ContextSettings settings;
    settings.antialiasingLevel = 8;
    sf::RenderWindow window(sf::VideoMode(800, 600), "Something", sf::Style::Default, settings);
    sf::CircleShape shape(200.f);
    shape.setFillColor(sf::Color::Green);

    while (window.isOpen())
    {
        sf::Event event;
        while (window.pollEvent(event))
        {
            if (event.type == sf::Event::Closed)
                window.close();
        }

        window.clear();
        window.draw(shape);
        window.display();
    }

    return 0;
}

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11032
    • View Profile
    • development blog
    • Email
What SFML version are you using?
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

sggocu88

  • Newbie
  • *
  • Posts: 13
    • View Profile
« Last Edit: February 23, 2017, 08:27:39 am by sggocu88 »

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11032
    • View Profile
    • development blog
    • Email
Try updating to SFML 2.4.2. Also what's your GPU?
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

sggocu88

  • Newbie
  • *
  • Posts: 13
    • View Profile
Try updating to SFML 2.4.2. Also what's your GPU?
I updated. Still don't work.. My gpu is intel G41 Express chipset. I know it's bad and maybe my pc's specs is the problem but if i make a simple game then people with bad pc's can't play my simple game with anti aliasing and will be ugly. Any other suggestions ?

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11032
    • View Profile
    • development blog
    • Email
Then it might just be that your GPU doesn't support 8x AA. You can of course keep developing with that setting turned on and it will render nicely on better hardware, it however just won't display nicely for your PC.
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/