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

QSGGeometry with GL_POINTS are not drawn with OpenGL ES

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P3: Somewhat important P3: Somewhat important
    • None
    • 5.4.2
    • Quick: SceneGraph
    • None
    • boot2qt image for BOundary Devices i.MX6

      A QSGNode with a QSGGeometry using GL_POINTS , and setting lineWidth() is rendered correctly with OpenGL Desktop, but does not render anything when running with OpenGL ES. Replacing GL_POINTS with GL_LINE_STRIP fixes the issue (but obviously changes behavior):

      
      

      This seems to be because OpenGL ES does not support glPointSize. E.g.

      http://stackoverflow.com/questions/9671021/gldrawarraysgl-points-0-4-does-not-draw-points-in-ios-5-0-and-opengl-es-2-0

      indicates that one should rather set gl_PointSize in the shader, instead, but the Scene Graph Renderer does not seem to support this.

      Ideally QSGRendererNode would handle this, or at least the documentation should be updated to mention this limitation.

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

            janichol Andy Nichols
            kkohne Kai Köhne
            Votes:
            2 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes