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

QOpenGLWidget::grabFramebuffer is darker than screen: not doing same gamma correction?

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P2: Important P2: Important
    • 5.12
    • 5.6.1
    • GUI: OpenGL
    • None
    • Mac OSX 10.11.6, latest xcode, Qt5.6.1 release
    • macOS

      The QImage produced by QOpenGLWidget::grabFramebuffer is much darker than what appears onscreen (see attached images) – seems like some kind of gamma correction factor is missing? It would be much more useful if the resulting image reflects what is seen onscreen – perhaps as an option?

      Relatedly, when I recently switched from using the QGLWidget to the QOpenGLWidget, it seems that this gamma factor got introduced, as the same underlying opengl rendering code now produces a much brighter image. I have searched extensively for any info about this but can't seem to find anything – perhaps some underlying OpenGL flag somewhere set globally on the entire window that automatically applies a gamma transform?

        For Gerrit Dashboard: QTBUG-55245
        # Subject Branch Project Status CR V

            lagocs Laszlo Agocs
            rcoreilly Randall O'Reilly
            Votes:
            2 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes