summaryrefslogtreecommitdiffstats
path: root/src/widgets
diff options
context:
space:
mode:
authorJocelyn Turcotte <jocelyn.turcotte@digia.com>2014-07-01 18:38:32 +0200
committerJocelyn Turcotte <jocelyn.turcotte@digia.com>2014-08-04 11:00:09 +0200
commit219c2eb4e28dd1c806cbc2115ff40454d6d3f9c5 (patch)
treec9aa6a79cf4a4da956ed3e87d002d7613c86f959 /src/widgets
parent83080e8a7cb7aaa794a9659eeaf34690afe71ddb (diff)
Rename globalShareContext to qt_gl_global_share_context
This makes it easier to forward-declare the exported symbol from other Qt modules without having to include the private headers. This keeps the old API until dependent submodules are updated. Change-Id: I08310a684b79f2f612f2ce897a601ff74178bee6 Reviewed-by: Laszlo Agocs <laszlo.agocs@digia.com>
Diffstat (limited to 'src/widgets')
-rw-r--r--src/widgets/kernel/qwidget.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/widgets/kernel/qwidget.cpp b/src/widgets/kernel/qwidget.cpp
index 43ce9a82f7..05e638574d 100644
--- a/src/widgets/kernel/qwidget.cpp
+++ b/src/widgets/kernel/qwidget.cpp
@@ -11986,7 +11986,7 @@ QOpenGLContext *QWidgetPrivate::shareContext() const
QWidgetPrivate *that = const_cast<QWidgetPrivate *>(this);
if (!extra->topextra->shareContext) {
QOpenGLContext *ctx = new QOpenGLContext;
- ctx->setShareContext(QOpenGLContextPrivate::globalShareContext());
+ ctx->setShareContext(qt_gl_global_share_context());
ctx->setFormat(extra->topextra->window->format());
ctx->create();
that->extra->topextra->shareContext = ctx;