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

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

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P2: Important
    • None
    • 5.12.0, 5.12.2
    • GUI: OpenGL
    • None
    • 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

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

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes