[Interest] Divining the opengl versions available
Boudewijn Rempt
boud at valdyas.org
Tue May 17 09:59:01 CEST 2016
On Tue, 17 May 2016, Giuseppe D'Angelo wrote:
> 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).
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
More information about the Interest
mailing list