diff --git a/src/gui/opengl/qopenglfunctions.cpp b/src/gui/opengl/qopenglfunctions.cpp index 8396a0e2d63..4024a3896d4 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"; }