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

Drawing a 2D canvas to itself with Accelerated2dCanvasEnabled causes rendering artifacts

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P3: Somewhat important
    • 5.4.0
    • 5.4.0 Beta
    • WebKit
    • None
    • Kubuntu 14.04, reproduced both with desktop OpenGL and EGL
    • cab992ea0898676ba83ca5eb95d346bfa185421e

    Description

      Attaching an example to demonstrate the issue. The bug seems to be caused by undefined behavior in OpenGL when using the same texture as a source and a destination. I'm working on a fix.

      The use case should be covered by these W3C tests too, although they passed when I tried them:

      http://w3c-test.org/submissions/539/2dcontext/drawing-images-to-the-canvas/2d.drawImage.self.1.html
      http://w3c-test.org/submissions/539/2dcontext/drawing-images-to-the-canvas/2d.drawImage.self.2.html

      Attachments

        1. main.cpp
          1 kB
          Samuel Rødal
        2. canvasSelfCopy.html
          2 kB
          Samuel Rødal
        3. canvasglitches.png
          211 kB
          Samuel Rødal
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            rodal Samuel Rødal
            rodal Samuel Rødal
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes