From: Gunnar Sletta Date: Fri, 9 Sep 2011 18:15:40 +0000 (+0200) Subject: Use the context we're given X-Git-Tag: qt-v5.0.0-alpha1~3626^2~18 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b097968c609ea8947cab62aae5892ef74637bec7;p=profile%2Fivi%2Fqtbase.git Use the context we're given Change-Id: I5bdcd1baf1bff86d281664c219098fe841b43fce Reviewed-on: http://codereview.qt-project.org/4629 Reviewed-by: Qt Sanity Bot Reviewed-by: Samuel Rødal --- diff --git a/src/gui/opengl/qopenglfunctions.cpp b/src/gui/opengl/qopenglfunctions.cpp index 8396a0e..4024a38 100644 --- a/src/gui/opengl/qopenglfunctions.cpp +++ b/src/gui/opengl/qopenglfunctions.cpp @@ -206,7 +206,7 @@ QOpenGLFunctions::QOpenGLFunctions(QOpenGLContext *context) : d_ptr(0) { if (context && QOpenGLContextGroup::currentContextGroup() == context->shareGroup()) - d_ptr = qt_gl_functions(); + d_ptr = qt_gl_functions(context); else qWarning() << "QOpenGLFunctions created with non-current context"; }