[Solved] How can I disable Antialiasing for the Sceen Graph OpenGL Context? [Qt 5.3.1]
QML and Qt Quick
2
Posts
1
Posters
1.2k
Views
1
Watching
-
wrote on 5 Sept 2014, 17:06 last edited by
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?
-
wrote on 5 Sept 2014, 20:27 last edited by
Problem Solved:
@QOpenGLFramebufferObject* SceneRenderer::createFramebufferObject(const QSize &size)
{
QOpenGLFramebufferObjectFormat format;
format.setAttachment(QOpenGLFramebufferObject::CombinedDepthStencil);
format.setSamples(0);
return new QOpenGLFramebufferObject(size, format);
}@
1/2