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

QGLFormat::CompatibilityProfile is ignored in some settings

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Done
    • Affects Version/s: 5.2.1
    • Fix Version/s: 5.3.0
    • Component/s: GUI: OpenGL
    • Labels:
      None
    • Environment:
      Windows 7, AMD Radeon R9 200 Series, Driver version 13.251.0.0 (Date 12/6/2013)
    • Commits:
      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
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            Assignee:
            lagocs Laszlo Agocs
            Reporter:
            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