Hi, I'm trying to use QQuickRenderControl to render QML offscreen and generate texture. I started with the QQuickRenderControl example, everything works fine until I try to add more QQuickRenderControl to render different QML. The exception happened when I initialize the second QQuickRenderControl:
*ASSERT: "!context->property(QSG_RENDERCONTEXT_PROPERTY).isValid()" in file scenegraph\qsgcontext.cpp, line 648* After some search on web, I found the code in *qsgcontext.cpp*: *if (m_attachToGLContext) { Q_ASSERT(!context->property(QSG_RENDERCONTEXT_PROPERTY).isValid()); context->setProperty(QSG_RENDERCONTEXT_PROPERTY, QVariant::fromValue(this)); }* Is there a way to share QOpenGLContext between multiple QQuickRenderControl? Although I could create a QOpenGLContext for each QQuickRenderControl and it works, but creating that many contexts on same thread doesn't make sense. Regards, Jarvis
_______________________________________________ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest