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

QGLFormat::CompatibilityProfile is ignored in some settings

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 5.3.0
    • 5.2.1
    • GUI: OpenGL
    • None
    • Windows 7, AMD Radeon R9 200 Series, Driver version 13.251.0.0 (Date 12/6/2013)
    • d8281a92b8eb1c5fa3e430c296f22a713cbe1808

    Description

      Tested with GPU "AMD Radeon R9 200 Series" and driver version 13.251.0.0 on Windows 7.

      The driver does not return a context with a QSurfaceFormat::CompatibilityProfile when QSurfaceFormat::DeprecatedFunctions are not requested as well, i.e. when WGL_CONTEXT_FORWARD_COMPATIBLE_BIT_ARB is set.

      If the issue exists on a specific system it can be reproduced with the attached sample code. It is important to request a context with a version >= 0x0300 (see qwindowsglcontext.cpp, ll. 503ff).

      According to the OpenGL wiki, one should "should never use the forward compatibility bit" (better is probably "hardly ever", see [1] at the very bottom).

      QGLFormat does not support DeprecatedFunctions, only QSurfaceFormat does. The default behavior of QSurfaceFormat is to not set the DeprecatedFunctions flag, which is contrary to what is suggested in [1]. As a consequence, it is currently not possible to request/configure a default context via QGLFormat::setDefaultFormat which supports OpenGL version >= 0x0300 and the CompatibilityProfile on some graphics cards.

      [1] http://www.opengl.org/wiki/Core_And_Compatibility_in_Contexts

      Attachments

        1. deprecated_functions.diff
          0.5 kB
        2. main.cpp
          1 kB
        For Gerrit Dashboard: QTBUG-37909
        # Subject Branch Project Status CR V

        Activity

          People

            lagocs Laszlo Agocs
            hauke Hauke Heibel
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes