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

TexImageData::setImage corrupts padded images

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Incomplete
    • Icon: Not Evaluated Not Evaluated
    • None
    • 5.6
    • Qt3D
    • None

      TexImageData::setImage assumes the input QImage contains packed image data, and ignores the bytes_per_line member. This leads to silent failure and corrupted images when the input QImage has padded image data (bytes_per_line > width*depth).

      This issue should at least be checked with an assert to fail early before corrupted image data is displayed. Ideally, TexImageData should be extended with support for bytes_per_line/stride.

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

            seanharmer Sean Harmer
            forderud Fredrik Orderud
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes