[Solved] How can I disable Antialiasing for the Sceen Graph OpenGL Context? [Qt 5.3.1]



  • I use QQuickFramebufferObject::Renderer to draw my QQuickItem with native OpenGL.
    I use the OpenGL context of the Scene Graph.
    So how can i disable MSAA for these context?

    PS . Is the context version of the scene graph always opengl 4.2?



  • Problem Solved:

    @QOpenGLFramebufferObject* SceneRenderer::createFramebufferObject(const QSize &size)
    {
    QOpenGLFramebufferObjectFormat format;
    format.setAttachment(QOpenGLFramebufferObject::CombinedDepthStencil);
    format.setSamples(0);
    return new QOpenGLFramebufferObject(size, format);
    }@


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.