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

QOpenGLShaderProgram::hasOpenGLShaderPrograms always returns true

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Not Evaluated
    • None
    • 5.3.0
    • GUI: OpenGL
    • None
    • 473ed1c1aa67ceb345b20d13c408ed8bd65a9e41

    Description

      QOpenGLShaderProgram::hasOpenGLShaderPrograms returns true even if the required extensions are not available.

      This is caused by qt_gl_resolve_features() in qopenglfunctions.cpp assuming version 2.0 or higher.

      Steps to reproduce:
      1. Run a Linux system with Mesa drivers
      2. Set env variable LIBGL_ALWAYS_INDIRECT=1
      3. test QOpenGLShaderProgram::hasOpenGLShaderPrograms
      4. compare with LIBGL_ALWAYS_INDIRECT=1 glxinfo

      Actual result:
      returns true

      Expected result:
      returns false

      Attachments

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

        Activity

          People

            sletta Gunnar Sletta
            mgraesslin Martin Gräßlin
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes