qt/gloverlay: fix using OpenGL after destroying Qml