QGLContext::currentContext returns null in QQuickWindow in Qt 5.0 RC1
-
This piece of code works in 5.0 beta2, but not in 5.0 RC1. It's connected to the signal sceneGraphInitialized from "QQuickWindow":http://doc-snapshot.qt-project.org/5.0/qtquick/qquickwindow.html
@void slotSceneGraphInitialized
{
glPopAttrib();
const QGLContext *ctx = QGLContext::currentContext();
ctx->functions()->glUseProgram(0);
}@Does anyone have the same problem?