Don't fetch a context that is never to be used
authorGunnar Sletta <gunnar.sletta@nokia.com>
Mon, 6 Jun 2011 05:44:41 +0000 (07:44 +0200)
committerGunnar Sletta <gunnar.sletta@nokia.com>
Mon, 6 Jun 2011 05:44:41 +0000 (07:44 +0200)
src/declarative/scenegraph/coreapi/qsgrenderer.cpp

index e267e3d..dbf704b 100644 (file)
@@ -206,10 +206,7 @@ void QSGRenderer::renderScene()
     class B : public Bindable
     {
     public:
-        B() : m_ctx(const_cast<QGLContext *>(QGLContext::currentContext())) { }
         void bind() const { QGLFramebufferObject::bindDefault(); }
-    private:
-        QGLContext *m_ctx;
     } b;
     renderScene(b);
 }