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

Render in QOpenGLWidget is flipped about the y axis when render mode is wireframe and face culling is enabled on Linux.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Cannot Reproduce
    • P3: Somewhat important
    • None
    • 5.10.1, 5.11.3, 5.12.0
    • GUI: OpenGL
    • None
    • Ubuntu 16.04, fedora, VMWare Workstation 12 player
    • Linux/X11

    Description

      The rendered triangle is flipped about the y axis when render mode is wireframe and face culling is enabled.

      glPolygonMode(GL_FRONT_AND_BACK, GL_LINE)
      glEnable(GL_CULL_FACE);
      

      It only occurred when rendering with a QOpenGLWidget but it did not occur with the QOpenGLWindow. The render is correct when GL_CULL_FACE is disabled.  I have attached demo code when you run it you should see s1.png and when you switch to wireframe (view > show wireframe) you should see s2.png

      Attachments

        1. demo.tar.gz
          1.18 MB
        2. s1.PNG
          s1.PNG
          39 kB
        3. s2.PNG
          s2.PNG
          7 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            lagocs Laszlo Agocs
            stephennneji Stephen Nneji
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes