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

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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Invalid
    • Affects Version/s: 5.12.8
    • Fix Version/s: None
    • Component/s: GUI: OpenGL
    • Labels:
      None
    • Environment:
      Windows 10 20H2 with nvidia gpu
      Ubuntu 20.04 in a vm with nvidia gpu
      Fedora 33 with AMD gpu
    • Platform/s:
      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. QtShaderTest.zip
          484 kB
        2. ubuntu_after.png
          ubuntu_after.png
          25 kB
        3. ubuntu_before.png
          ubuntu_before.png
          514 kB
        4. win10_after.png
          win10_after.png
          476 kB
        5. win10_before.png
          win10_before.png
          475 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            Assignee:
            lagocs Laszlo Agocs
            Reporter:
            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