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

OpenGL shader unexpectedly function crops texture on Linux, but not on Windows

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • P2: Important
    • None
    • 5.12.8
    • GUI: OpenGL
    • None
    • Windows 10 20H2 with nvidia gpu
      Ubuntu 20.04 in a vm with nvidia gpu
      Fedora 33 with AMD gpu
    • Linux/Wayland, Linux/X11

    Description

      When I try to manipulate an image with QOpenGLShaderProgram the resulting image gets cropped to approximately 1/6 of the original size to the bottom left corner, but only on Linux.

      On Windows 10 it works perfectly, with the same Qt version.

      See the attached images on before running the shader and after running.

      I tried it on Ubuntu with an nvidia gpu and on Fedora with an AMD gpu, both X11 and Wayland gives me this bug.

       

      I also attached the test project I used.

      Attachments

        1. win10_before.png
          win10_before.png
          475 kB
        2. win10_after.png
          win10_after.png
          476 kB
        3. ubuntu_before.png
          ubuntu_before.png
          514 kB
        4. ubuntu_after.png
          ubuntu_after.png
          25 kB
        5. QtShaderTest.zip
          484 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            lagocs Laszlo Agocs
            borlandc Alex Nemeth
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes