On Tue, 17 May 2016, Giuseppe D'Angelo wrote:

On Tue, May 17, 2016 at 9:44 AM, Boudewijn Rempt <b...@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).

Hm... But when I tried that with a nonsense version, say 9.9, I
got 9.9 back. Maybe I made a mistake, though. I copied the functions
check approach from the tesselation example from KDab's website...

--
Boudewijn Rempt | http://www.krita.org, http://www.valdyas.org
_______________________________________________
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest

Reply via email to