Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Crash when setting QSurfaceFormat samples count when threading rendering



  • Hi all !
    Take the "threadedopengldemo" example, and just add a format.setSamples(1); in the main function.
    The program should crash (at least for me) with a Cannot make QOpenGLContext current in a different thread error.

    Is this behaviour intended or is this a bug ? If it is intended, is there any way to work around this ?

    Thanks in advance,
    Zouch