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

ShaderEffectSource/layer always accounts for high DPI in textureSize, cannot work with pixels (Incorrect image when layer.enabled is true)

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 6.5.0 Beta1
    • 6.4.0
    • Quick: SceneGraph
    • None
    • Windows
    • 33202a58d7 (qt/qtdeclarative/dev) 33202a58d7 (qt/tqtc-qtdeclarative/dev)

    Description

      Setting layer.enabled to true warps the displayed image.
      To reproduce:
      1) Run the attached example
      2) layer.enabled is false, Bayer pattern is visible.
      3) Set layer.enabled to true -> no Bayer pattern visible anymore.
      There should be 3 texels between each black line, but when the layer is enabled there are 4 texels. Total number of texels silently changes from 128 to 160.

      The problem is not reproducible only if "Display Scale and Layout" is set to 100% in the system settings.

      Attachments

        1. pattern.png
          pattern.png
          40 kB
        2. shadertest.7z
          26 kB

        Issue Links

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

          Activity

            People

              qt.team.graphics.and.multimedia Qt Graphics Team
              alexey89 alexey89
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes