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

Incorrect OpenGL ES version in QWindowsEGLContext with ANGLE

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P2: Important P2: Important
    • 5.12.2, 5.14.0 Alpha
    • 5.12.0, 5.12.1
    • GUI: OpenGL
    • None
    • Windows 10 x64
      MSVC 15.9.4
    • Windows
    • 932b13d3ec76eedfc0e76e81c05b2d54552c0715 (qt/qtbase/5.12)

      I try to make QOpenGLWidget use OpenGL ES 3.1 using ANGLE. The problem is that during creation of QWindowsEGLContext such attribute is set:

       

      contextAttrs.append(EGL_CONTEXT_CLIENT_VERSION);
       contextAttrs.append(m_format.majorVersion());
       contextAttrs.append(EGL_NONE);

       

      As a result, opengl version is set to 3.0 (if values is missing (minor version) it is set to 0). 

      I have fixed it with code:

      contextAttrs.append(EGL_CONTEXT_MAJOR_VERSION);
       contextAttrs.append(m_format.majorVersion());
       contextAttrs.append(EGL_CONTEXT_MINOR_VERSION);
       contextAttrs.append(m_format.minorVersion());
       contextAttrs.append(EGL_NONE);

      Is it possible to add this fix to Qt?

        For Gerrit Dashboard: QTBUG-72762
        # Subject Branch Project Status CR V

            owolff Oliver Wolff
            denix56 Denys Senkin
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes