Important: Please read the Qt Code of Conduct -

UWP with Qt: OpenGL context creation issue

  • Hi,

    while trying to run the standard opengl cube example together with UWP, I get the following errors: QEGLPlatformContext: Failed to create context: 3006 QOpenGLWidget: Failed to create context QEGLPlatformContext: eglMakeCurrent failed: 3009 composeAndFlush: makeCurrent() failed

    I use Qt 5.14.2 for UWP 64bit (MSVC 2017) and QtCreator 4.11.1 on Windows 10.

    On non UWP (Desktop Qt 5.14.2 MSVC2017 64bit), it works.

    Anyone some ideas how to solve this? Any help is highly appreciated.


  • Hi,

    I could solve the problem partially.

    By adding the lines

    QSurfaceFormat format;
    format.setVersion(3, 0);

    before showing the MainWindow, the context creation error disappears.

    But instead, a new error arises:

    QOpenGLWidget: Failed to make context current

    Does anyone have an idea how to solve this one?

    Thanks and regards,

Log in to reply