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>
This commit is contained in:
Gunnar Sletta 2011-09-09 20:15:40 +02:00 committed by Samuel Rødal
parent 87ee382419
commit b097968c60

View File

@ -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";
}