SFML community forums

Help => Window => Topic started by: mercurio7891 on May 04, 2011, 07:44:13 pm

Title: sf::RenderWindow opengl version vs glGetString(GL_VERSION)
Post by: mercurio7891 on May 04, 2011, 07:44:13 pm
hi, in sfml2 on windows, is anyone getting a different version from glGetString(GL_VERSION) versus the one reported back by sf::ContextSettings?

I created a RenderWindow with 2.0 context, but glGetString always report back as version 3.3

I was wondering if this happens only on my machine or is it happening to others too?

regards
Title: sf::RenderWindow opengl version vs glGetString(GL_VERSION)
Post by: Laurent on May 04, 2011, 07:52:06 pm
Drivers are allowed to create a 3.x or 4.x compatibility profile if a regular 2.0 context is requested. So yes it happens.

Right now I'm changing the implementation so that the result of glGetString(GL_VERSION) is returned, instead of the number that SFML used to create the context.