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

ANGLE: Painting with QPainter on QOpenGLWidget flips R and B channels

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Reported
    • Priority: P2: Important
    • Resolution: Unresolved
    • Affects Version/s: 5.12.0, 5.12.2
    • Fix Version/s: None
    • Component/s: GUI: OpenGL
    • Labels:
      None
    • Platform/s:
      Windows

      Description

      With Angle openGL implementation, when drawing with QPainter on QOpenGLWindget that has surface type set to GL_RGBA16F, R and B color channels are swapped. Red is painted as Blue and vice versa.

       

      The problem is caused by commit ede3791df8330ed8daae6667d025ad40219a9f5f that introduced usage of GL_TEXTURE_SWIZZLE_RGBA, which is not supported by OpenGL ES standard.

       

      Original bugreport in Krita: https://bugs.kde.org/show_bug.cgi?id=406196

      I'll try to come up with a fix.

       

       

        Attachments

          Issue Links

          For Gerrit Dashboard: QTBUG-74968
          # Subject Branch Project Status CR V

            Activity

              People

              • Assignee:
                lagocs Laszlo Agocs
                Reporter:
                dkazakov Dmitry Kazakov
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:

                  Gerrit Reviews

                  There are no open Gerrit changes