Sign in to follow this  
Neosettler

How to create a 2.1 context on recent Nvidia hardware?

Recommended Posts

Neosettler    150
Greetings everyone,

back in the not so distant past, I was able to create a 2.1 context on 4.x hardware. I'm using a GeForce 690 with the 306.97 driver. It seems like the driver select the highest available context depend on the video card capabilities event when asking for a 2.1 context.

I use [url="http://www.sfml-dev.org/"]SFML[/url]to create the GLcontext and the head developer is saying that he cant do nothing about this automated feature.

I looked in the Nvidia control panel and there is nothing regard this issue, how is that possible?

Share this post


Link to post
Share on other sites
swiftcoder    18432
[quote name='Brother Bob' timestamp='1354303575' post='5005799']
it doesn't matter anyway since nothing changes for new versions.[/quote]
To clarify that a little, while newer versions of OpenGL add many features, they don't take any away (unless you specifically request a 'Core' profile, which will prevent the use of all deprecated functionality).

Share this post


Link to post
Share on other sites
Neosettler    150
[quote](unless you specifically request a 'Core' profile, which will prevent the use of all deprecated functionality).[/quote]

Thank you for your clarification swiftcoder and how do you specify this exactly?

Share this post


Link to post
Share on other sites
swiftcoder    18432
[quote name='Neosettler' timestamp='1354306053' post='5005820']
Thank you for your clarification swiftcoder and how do you specify this exactly?[/quote]
As far as I am aware, SFML doesn't support requesting a core profile.

See [url="https://github.com/LaurentGomila/SFML/issues/176"]https://github.com/L...SFML/issues/176[/url]

Share this post


Link to post
Share on other sites
Aks9    1499
[quote name='Neosettler' timestamp='1354303028' post='5005794']It seems like the driver select the highest available context depend on the video card capabilities event when asking for a 2.1 context. I use [url="http://www.sfml-dev.org/"]SFML[/url]to create the GLcontext and the head developer is saying that he cant do nothing about this automated feature. I looked in the Nvidia control panel and there is nothing regard this issue, how is that possible? [/quote]
The problem is in using SFML. Why wouldn't you create context on your own? (I'm allergic on wrappers/libraries.)
GL 2.1 context can be created as simple as calling wglCreateContext(). SFML probably uses wglCreateContextAttribsARB(), and it returns the highest supported version. wglCreateContext() cannot create higher that GL 2.1 context even if you want that.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this