Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-93749

Can't switch to OpenGL ES

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Invalid
    • Affects Version/s: 6.0.0, 6.1.0
    • Fix Version/s: None
    • Component/s: Quick: SceneGraph
    • Labels:
      None
    • Platform/s:
      Windows

      Description

      Simple test app:

      #include <QGuiApplication>
      #include <QQuickWindow>
      #include <QSurfaceFormat>
      
      int main(int argc, char *argv[])
      {
          QGuiApplication a(argc, argv);
      
          QQuickWindow::setGraphicsApi(QSGRendererInterface::OpenGL);
      
          QSurfaceFormat sf;
          sf.setRenderableType(QSurfaceFormat::OpenGLES);
          QSurfaceFormat::setDefaultFormat(sf);
      
          QQuickWindow window;
          window.show();
      
          return a.exec();
      }
      

      The application will trigger assert error at startup. I've put the latest ANGLE libraries copied from Google Chrome into the exe's directory. The assert error will always be triggered no matter on Win7 or Win10. Seems not related to the OS version.

      Console output:

      QRhiGles2: Failed to create temporary context
      QRhiGles2: Failed to create context
      Failed to create RHI (backend 2)
      Failed to create QRhi on the render thread; scenegraph is not functional
      Failed to initialize graphics backend for OpenGL.
      

        Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            Assignee:
            janichol Andy Nichols
            Reporter:
            wangwenx190 赵 宇航
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes