Creating an OpenGL context on Windows with Glew.

Started by
10 comments, last by swiftcoder 9 years, 10 months ago

The wiki says "A forward compatible context must fully remove deprecated features in the version that it returns; you should never actually use this." It's actually bolded on wiki so I took it at face value. Perhaps the wiki is overzealous. It seems like it would be a good idea to not include deprecated features, however I suppose if somewhere down the line features I'm using became deprecated and I asked for the latest context without deprecated features I would suddenly break my program. That seems like a far out case though.

Interestingly enough if I set major to 1 and minor to 0. I get a 3.3 context. I tried updating the drivers, same results.

Advertisement

The wiki says "A forward compatible context must fully remove deprecated features in the version that it returns;you should never actually use this." It's actually bolded on wiki so I took it at face value. Perhaps the wiki is overzealous. It seems like it would be a good idea to not include deprecated features, however I suppose if somewhere down the line features I'm using became deprecated and I asked for the latest context without deprecated features I would suddenly break my program. That seems like a far out case though.

They are just paraphrasing NVidia's guidelines there. You would expect a Core context to be more efficient, given that all deprecated functionality can be removed, but in some cases a single driver implements both Core and non-Core contexts, and in the Core case, it may have to add a bunch of extra error checking to make sure you don't call non-Core functionality.

I generally recommend that you use a Core context for development, and if you feel it necessary, switch to a non-Core context for release.

Tristam MacDonald. Ex-BigTech Software Engineer. Future farmer. [https://trist.am]

This topic is closed to new replies.

Advertisement