summaryrefslogtreecommitdiffstats
path: root/src/gui/rhi/qrhigles2.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/rhi/qrhigles2.cpp')
-rw-r--r--src/gui/rhi/qrhigles2.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/rhi/qrhigles2.cpp b/src/gui/rhi/qrhigles2.cpp
index 8d2002f68a0..8f89e6b48d2 100644
--- a/src/gui/rhi/qrhigles2.cpp
+++ b/src/gui/rhi/qrhigles2.cpp
@@ -771,7 +771,7 @@ bool QRhiGles2::create(QRhi::Flags flags)
if (maybeShareContext) {
ctx->setShareContext(maybeShareContext);
ctx->setScreen(maybeShareContext->screen());
- } else if (QOpenGLContext *shareContext = qt_gl_global_share_context()) {
+ } else if (QOpenGLContext *shareContext = QOpenGLContext::globalShareContext()) {
ctx->setShareContext(shareContext);
ctx->setScreen(shareContext->screen());
} else if (maybeWindow) {