Qt::AA_UseOpenGLES and Qt::AA_ShareOpenGLContexts cause crash



  • I have attached a test application and images to illustrate the issue. I am using Qt 5.12.2 on windows 10. [0_1557302703262_QtOpenglThreadTestApp.zip](Uploading 100%)
    0_1557302886280_QtOpenglThreadTestCrash.png 0_1557302892845_QtOpenglThreadTestCrash2.png
    if I comment out QApplication::setAttribute( Qt::AA_UseOpenGLES ); then is renders the logo fine else crashes
    If at all possible I would like to use the gles shaders on linux/android/windows which is what I assumed ANGLE was for
    I have to render in a thread because kodi is a part of my app
    the whole source is at https://github.com/brettrjones/gotvptop.git
    The test application is under SOURCE_DIR/SandboxApps



  • https://doc.qt.io/qt-5/qopenglextrafunctions.html
    "The QOpenGLExtraFunctions class provides cross-platform access to the OpenGL ES 3.0, 3.1 and 3.2 API."

    I am not sure you need to enable th e UseOpenGLES flag after that. Probably need to test with and without. I tried looking at your code, but could not quickly find the relevant source that uses QOpenGLFunctions.



  • Thanks for the response although I think my fundamental issues are in trying to share the context and use gles on windows at the same time. I am going to try a different approach and try using a plain qwidget for painting the rendered QOffscreenSurface fbo and put all of the rendering initialization and rendering into the thread so will have a single thread that accesses opengl


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.