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

No multisampling/antialiasing with ANGLE in Windows

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Not Evaluated
    • None
    • 5.1.1
    • GUI: OpenGL
    • None
    • Windows 7 64 bits, Visual Studio 2012, building with regular (ANGLE) and OpenGL Qt 5.1.1 64 bits.

    Description

      Requesting multisampling in a QWindow with surface type QWindow::OpenGLSurface is ignored when the Qt build is based in the ANGLE (non-opengl) renderer.

      To reproduce this, use the OpenGL Window example included with Qt and:

      1) In file openglwindow.cpp comment-out line 129 and add immediately below:
      QSurfaceFormat surfaceFormat = requestedFormat();
      surfaceFormat.setSamples( 4 );
      m_context->setFormat( surfaceFormat );

      This sets the number of samples per pixel to 4 for multisampling.

      2) Build and run in the non-opengl (ANGLE) Qt build, you should observe pixelated edges as in the attached image. QSurfaceFormat.setSamples(4) is not working.

      3) Build and run in the opengl Qt build, you should observe smooth edges as in the second attached image.

      Attachments

        1. angle-no-antialiasing.png
          28 kB
          Jorge Diogo
        2. opengl-antialiasing.png
          28 kB
          Jorge Diogo
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            sletta Gunnar Sletta
            jorgediogo Jorge Diogo
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes