Jump to content
  • Advertisement
Sign in to follow this  
NekoCode

OpenGL Creating context with older versions

This topic is 1364 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hey everyone, I am trying to implement OpenGL 2.1 and lower versions context support. 

When creating empty context it returns me actual version which is 4.1.. what if I want 2.1 and lower?

And as I know, wglCreateContextAttribs can't apply 2.1 version as parameter ( only higher... and yep, it doesn't work with 2.1 or 2.0 ).

 

My current card is Intel HD 4000, it supports 1.2, 2.0, 3.X, 4.X. Code is extremly simple - choose pixel format, set pixel format, do wglCreateContext(hdc) and wglMakeCurrent what returns me as I said, 4.0 or higher.

 

Thanks in advance!

Edited by NekoCode

Share this post


Link to post
Share on other sites
Advertisement

A GL 4.1 context (provided it's created in compatibility mode, which is the default) is also a valid 2.1 context, so there's nothing you need to do aside from restrict your code to 2.1 features only.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!