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

Qml font rendering bug due to glCullFace(GL_FRONT)

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 5.12.8
    • None
    • Ubuntu 20.04
    • Linux/X11

    Description

      We are using Qml to build an OpenGL program. We share the same opengl context with Qt.

      During our rendering, we set glCullFace(GL_FRONT), and call QQuickWindow::resetOpenGLState() after our rendering.

      Then occasionally, Qt renders the fonts incorrectly.

      Currently we get around this problem by calling glCullFace(GL_BACK) after our rendering.

      Since the fonts are rendered correctly sometimes, we think there exists a call to glCullFace(GL_BACK) somewhere in the Qt rendering code path. But that is not guaranteed to be run. So we suggest to add glCullFace(GL_BACK) to QQuickWindow::resetOpenGLState() to ensure that Qt renders fonts correctly.

      And another API might also need to be reset: glClipControl()

      Attachments

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

        Activity

          People

            esabraha Eskil Abrahamsen Blomfeldt
            xuzhongxing Zhongxing Xu
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes