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

QOpenGLContext::getProcAdress is not guaranteed to return nullptr on all platforms

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 6.4.1
    • Documentation
    • None
    • Linux
    • All

    Description

      Documentation for QOpenGLContext::getProcAdress (https://doc.qt.io/qt-6/qopenglcontext.html#getProcAddress) for both Qt 5 and Qt 6 states that this function is supposed to return nullptr in case the requested function is not found.

      This  behavior, in fact, is platform and OpenGL implementation dependent which makes the statement misleading. This call in some cases boils down to glXGetProcAddress() call which does not return NULL / nullptr in case of a non-existing or unsupported function request.

      In order to reproduce, request procedure address with an arbitrary string under Linux, you will not get a nullptr returned. 

      Please remove the misleading statement in the documentation or mark as platform dependent.

      Attachments

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

        Activity

          People

            docteam Qt Documentation Team
            skarndev skarndev
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes