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

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

XMLWordPrintable

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

      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.

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes