No - because deleting an application object never occurred to me :-) I've
always treated it like main() - I guess I assumed you could only
instantiate one.

Any thoughts on the second part about why I get a 3.0 context if I try to
set samples instead of the 3.3 I get when I don't? On macOS if I request 16
samples, and it can only do 8, I get 8.

Thanks Giuseppe!

---
Andy Maloney  //  https://asmaloney.com
twitter ~ @asmaloney <https://twitter.com/asmaloney>



On Wed, Sep 19, 2018 at 8:49 AM Giuseppe D'Angelo via Interest <
interest@qt-project.org> wrote:

> Il 19/09/2018 14:32, Andy ha scritto:
> >
> > That was my initial thought too, but in order to create the context to
> > check the results, I need an application. But if I set the default after
> > I create the application I get a warning:
> >
> > Warning: Setting a new default format with a different version or
> > profile after the global shared context is created may cause issues with
> > context sharing. (qsurfaceformat.cpp:836, static void
> > QSurfaceFormat::setDefaultFormat(const QSurfaceFormat &))
> >
> >
> > (Which is what it says in the docs for
> QSurfaceFormat::setDefaultFormat())
> >
> > Hence the catch-22.
>
> Are you destroying the QGuiApplication object after an unsuccessful
> test, and recreating it after changing the default format?
>
> Cheers,
>
> --
> Giuseppe D'Angelo | giuseppe.dang...@kdab.com | Senior Software Engineer
> KDAB (France) S.A.S., a KDAB Group company
> Tel. France +33 (0)4 90 84 08 53, http://www.kdab.com
> KDAB - The Qt, C++ and OpenGL Experts
>
> _______________________________________________
> Interest mailing list
> Interest@qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest
>
_______________________________________________
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest

Reply via email to