osgEarth::Registry::capabilities() cause a black screen
When I only use osg in qml, everything is normal. If I add the earth node to the scene, it will cause a black screen.
I added QQuickFramebufferObject to the scene as a node of qml.
In the render phase, I found that OSGEarth::Registry::Capabilities() built a temporary context to obtain the current environment's support for OpenGL.
There is already an active device context in the rendering stage. Call OSGEARTH::REGISTRY::Capabilities() to check the environment whether it is necessary and why not directly inquires through OpenGL function.
Re: osgEarth::Registry::capabilities() cause a black screen
Try calling osgEarth::Registry::capabilities() before initializing your Qt environment. If you are using the osgEarth 3.0 branch, you can include "osgEarth/Common" and call osgEarth::initialize() instead.