[Interest] OpenGL: Setting samples on default QSurfaceFormat

Giuseppe D'Angelo giuseppe.dangelo at kdab.com
Wed Sep 19 14:48:41 CEST 2018


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.dangelo at 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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4007 bytes
Desc: Firma crittografica S/MIME
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20180919/9cf7bf7d/attachment.bin>


More information about the Interest mailing list