summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGunnar Sletta <gunnar.sletta@nokia.com>2011-09-09 20:15:40 +0200
committerSamuel Rødal <samuel.rodal@nokia.com>2011-09-12 09:08:35 +0200
commitb097968c609ea8947cab62aae5892ef74637bec7 (patch)
treec876822add6e59d0c93de2953d611f25f3be215a /src
parent87ee3824190c44b99a22a0e214dc435fa11ff7ef (diff)
Use the context we're given
Change-Id: I5bdcd1baf1bff86d281664c219098fe841b43fce Reviewed-on: http://codereview.qt-project.org/4629 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
Diffstat (limited to 'src')
-rw-r--r--src/gui/opengl/qopenglfunctions.cpp2
1 files changed, 1 insertions, 1 deletions
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";
}