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

Author Topic: sf::RenderWindow opengl version vs glGetString(GL_VERSION)  (Read 1552 times)

0 Members and 1 Guest are viewing this topic.

mercurio7891

  • Jr. Member
  • **
  • Posts: 89
    • View Profile
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

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
sf::RenderWindow opengl version vs glGetString(GL_VERSION)
« Reply #1 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.
Laurent Gomila - SFML developer

 

anything