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:
parent
87ee382419
commit
b097968c60
@ -206,7 +206,7 @@ QOpenGLFunctions::QOpenGLFunctions(QOpenGLContext *context)
|
|||||||
: d_ptr(0)
|
: d_ptr(0)
|
||||||
{
|
{
|
||||||
if (context && QOpenGLContextGroup::currentContextGroup() == context->shareGroup())
|
if (context && QOpenGLContextGroup::currentContextGroup() == context->shareGroup())
|
||||||
d_ptr = qt_gl_functions();
|
d_ptr = qt_gl_functions(context);
|
||||||
else
|
else
|
||||||
qWarning() << "QOpenGLFunctions created with non-current context";
|
qWarning() << "QOpenGLFunctions created with non-current context";
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user