[Interest] Divining the opengl versions available

Giuseppe D'Angelo dangelog at gmail.com
Tue May 17 09:55:34 CEST 2016


On Tue, May 17, 2016 at 9:44 AM, Boudewijn Rempt <boud at valdyas.org> wrote:
>
> But that sometimes fails as well, on some Linux systems where I know that
> the system supports
> 3.2 + compatibility profile, I don't get the functions object either. What's
> the correct way
> to see which version is supported?

Qt has some _questionable_ logic when it comes to creating a context
with a given version. Anyhow, you should not be using the functions;
just try to create a context of a given version (using
QSurfaceFormat), then call context->format() to get the actual version
obtained (which may be different from the one you requested).

HTH,
-- 
Giuseppe D'Angelo



More information about the Interest mailing list