diff options
author | Gunnar Sletta <gunnar.sletta@nokia.com> | 2010-12-02 18:50:20 +0100 |
---|---|---|
committer | Gunnar Sletta <gunnar.sletta@nokia.com> | 2010-12-02 18:50:20 +0100 |
commit | 76ef7e6153baa670fec22e7f25fc96992d0dc94b (patch) | |
tree | bf6907d7fd0279b0fa4a08f574cb7308d40c335d | |
parent | 8184918371035047cea1d42e949d6b5573ef1af5 (diff) |
Remove redundant makeCurrent().
Its not the job of the renderer to make the context current...
Its anyway kind of pointless to make the current context current :)
-rw-r--r-- | src/scenegraph/coreapi/qmlrenderer.cpp | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/scenegraph/coreapi/qmlrenderer.cpp b/src/scenegraph/coreapi/qmlrenderer.cpp index 9cc878a..683e107 100644 --- a/src/scenegraph/coreapi/qmlrenderer.cpp +++ b/src/scenegraph/coreapi/qmlrenderer.cpp @@ -157,9 +157,6 @@ void QMLRenderer::render() } #endif - const QGLContext *ctx = QGLContext::currentContext(); - const_cast<QGLContext *>(ctx)->makeCurrent(); - glBlendFunc(GL_ONE, GL_ONE_MINUS_SRC_ALPHA); glDisable(GL_BLEND); |