From 76ef7e6153baa670fec22e7f25fc96992d0dc94b Mon Sep 17 00:00:00 2001 From: Gunnar Sletta Date: Thu, 2 Dec 2010 18:50:20 +0100 Subject: 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 :) --- src/scenegraph/coreapi/qmlrenderer.cpp | 3 --- 1 file changed, 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(ctx)->makeCurrent(); - glBlendFunc(GL_ONE, GL_ONE_MINUS_SRC_ALPHA); glDisable(GL_BLEND); -- cgit v1.2.3