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

QGLWidget::grabFrameBuffer() ignores withAlpha parameter

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P3: Somewhat important
    • 4.6.3
    • 4.6.1
    • GUI: OpenGL
    • None
    • ubuntu karmic 9.10
      Linux wizard 2.6.31-17-generic #54-Ubuntu SMP Thu Dec 10 16:20:31 UTC 2009 i686 GNU/Linux
      Intel(R) Core(TM)2 Quad CPU Q9300 @ 2.50GHz
      VGA compatible controller: nVidia Corporation G94 [GeForce 9600 GT] (rev a1)
    • 1113ec294d0f92f4961d3f102ef7a702a765cfe3

    Description

      I have an OpenGL based application which saves it's own screenshots by QGLWidget::grabFrameBuffer().
      If I draw a half transparent texture somewhere and save a screenshot in png, it's clearly visible
      in an image viewer that the png is half transparent where the texture was.

      I checked the code src/opengl/qgl.cpp where the call ends up in:
      static void convertFromGLImage(QImage &img, int w, int h, bool alpha_format, bool include_alpha)

      here include_alpha is checked only for big endian machines, otherwise ignored.

      Attachments

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

        Activity

          People

            kjernase Trond Kjernåsen (Inactive)
            bence.frenyo Bence Frenyo
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes