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

REG: QPainter renders horizontal lines incorrectly to QGLFramebufferObjects (ATI cards)

    XMLWordPrintable

Details

    • Bug
    • Resolution: Out of scope
    • P1: Critical
    • None
    • 4.8.2, 4.8.6, 5.3.2, 5.5.0
    • GUI: OpenGL
    • Windows 7 (ATI Radeon HD 6670), Mac OS X (10.9.5) (ATI Radeon HD 5750)

    Description

      The attached example can be used to reproduce the issue. This seems to be regression to bug fix of QTBUG-16043. The commit 67b24ac50637ecda00990b239fc5ed0b73e54d75 "Fixed stroke / fill inconsistencies in GL 2 paint engine" (14.12.2010, 4.8) is causing this behavior with systems that use ATI graphics drivers. The attached images shows the issue also.

      The attached patch reverts the commit made to QTBUG-16043.

      As a workaround the issue one can add some tiny fractional amount (like 0.001) to either the line start or end point y-coordinate. There reason might be that there is a difference in how ATI and NVIDIA handle floating point rounding and that on ATI cards a round-down occurs when it doesn't on NVIDIA cards. Since the ogl2 paint engine renders lines with triangle strips this round down will result in either no line - where the y-coordinates of each triangle vertex is the same, resulting in degenerate triangles - or a 1px too thick line.

      Attachments

        1. horizontal_lines_ati_bug.png
          horizontal_lines_ati_bug.png
          33 kB
        2. horizontal_lines_bug.zip
          2 kB
        3. horizontal_lines_nvidia.png
          horizontal_lines_nvidia.png
          32 kB
        4. patch.diff
          4 kB
        5. qtbug26447_qt5.zip
          0.8 kB
        6. qtbug26447.zip
          2 kB

        Issue Links

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

          Activity

            People

              lagocs Laszlo Agocs
              qtcomsupport Qt Support
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes