Home Query highest supported OpenGL version before context initialization?
Reply: 0

Query highest supported OpenGL version before context initialization?

user606
1#
user606 Published in April 22, 2018, 6:51 am

I want to know if there is a way (ideally cross platform, but if not just POSIX compliant or at least in Linux) to query for the highest supported OpenGL version in the current system.

I would like to be able to instantiate GLFW windows to be the highest supported version, rather than blindly trying different versions until one allows for valid context initialization.

EDIT:

Assume I am not creating a context. Imagine I want to replicate what glxinfo does. In other words, I want to be able to query the installed OpenGL version without EVER creating a context.

You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.305945 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO