summaryrefslogtreecommitdiffstats
path: root/src/gui/opengl
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/opengl')
-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";
}