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

SRGB8_ALPHA8 texture-backed QOpenGLWidget does not work on macOS unless QSurfaceFormat::setSamples() is used

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 5.11.2
    • GUI: OpenGL
    • None
    • macOS

    Description

      QSurfaceFormat::sRGBColorSpace does not work on macOS unless QSurfaceFormat::setSamples() is used explicitly.

       

       

       

      As an example, try building the default QOpenGLWidget example project, which serves as an example on how to use the QSurfaceFormat::sRGBColorSpace, and run it with and without --multisample --srgb

      When run without --multisample but with --srgb, the framebuffer is never set to sRGB.

       

      As a further test I've edited the project and tried calling QSurfaceFormat::setSamples(1) and it still triggers the sRGBColorSpace framebuffer.

       

      Would be nice if this was sorted for the next LTS. v5.12

      Attachments

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

        Activity

          People

            sorvig Morten Sørvig
            javieredo Javier Edo
            Veli-Pekka Heinonen Veli-Pekka Heinonen
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes