On 12/28/2012 09:53 AM, Pier Luigi wrote: > Hi, > > I'm working on a QML-based compositor and I would like to print some > EGL and GL strings when it starts to get more useful information when > something doesn't work. > > The compositor, although loaded from a plugin, is very much like the > qmlcompositor example; this means it creates a QQuickView and load the > main .qml file. > > EGL is fine: after the creation of the QQuickView I get a EGLDisplay > using the platform native interface and print some EGL info > successfully. > > However glGetString() always return NULL, I call it from the > sceneGraphInitialized() slot and I noticed that despite > openglContext() returns a valid pointer, > QOpenGLContext::currentContext() is 0. > > Someone has an idea on what I'm doing wrong?
On which thread do you execute the slot connected to sceneGraphInitialized() ? The scene graph might run on a separate thread from the main UI thread, and the QOpenGLContext will then be made current there. -- Samuel _______________________________________________ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest