From b097968c609ea8947cab62aae5892ef74637bec7 Mon Sep 17 00:00:00 2001 From: Gunnar Sletta Date: Fri, 9 Sep 2011 20:15:40 +0200 Subject: Use the context we're given MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I5bdcd1baf1bff86d281664c219098fe841b43fce Reviewed-on: http://codereview.qt-project.org/4629 Reviewed-by: Qt Sanity Bot Reviewed-by: Samuel Rødal --- src/gui/opengl/qopenglfunctions.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/gui/opengl') diff --git a/src/gui/opengl/qopenglfunctions.cpp b/src/gui/opengl/qopenglfunctions.cpp index 8396a0e2d6..4024a3896d 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"; } -- cgit v1.2.3