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

QOpenGLFrambufferObject::toImage returns wrong pixel colors on big-endian CPU

    XMLWordPrintable

Details

    • Bug
    • Resolution: Incomplete
    • P2: Important
    • None
    • 5.0.0, 5.0.1
    • GUI: OpenGL

    Description

      Since commit 0d519164f29eb04208eac8bb7dd85443e2b282e1, qt_gl_read_framebuffer has been trying to smartly read textures as BGRA to avoid post pixel manipulation. On little-endian machines a byte-order of BGRA is identical to Qt's internal format of 32bit ARGB, but is completely wrong on big-endian machines where it becomes 32bit BGRA.

      The former code was not optimized, but was appears to have been more correct.

      Attachments

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

        Activity

          People

            vgt Eirik Aavitsland
            carewolf Allan Sandfeld Jensen (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes