summaryrefslogtreecommitdiffstats
path: root/src/gui/kernel/qopenglcontext.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/kernel/qopenglcontext.cpp')
-rw-r--r--src/gui/kernel/qopenglcontext.cpp34
1 files changed, 23 insertions, 11 deletions
diff --git a/src/gui/kernel/qopenglcontext.cpp b/src/gui/kernel/qopenglcontext.cpp
index c7f4e6455c..8e848f90ae 100644
--- a/src/gui/kernel/qopenglcontext.cpp
+++ b/src/gui/kernel/qopenglcontext.cpp
@@ -243,6 +243,27 @@ QMutex QOpenGLContextPrivate::makeCurrentTrackerMutex;
#endif
/*!
+ \internal
+
+ This function is used by the Qt WebEngine to set up context sharing
+ across multiple windows. Do not use it for any other purpose.
+
+ Please maintain the binary compatibility of these functions.
+*/
+void qt_gl_set_global_share_context(QOpenGLContext *context)
+{
+ global_share_context = context;
+}
+
+/*!
+ \internal
+*/
+QOpenGLContext *qt_gl_global_share_context()
+{
+ return global_share_context;
+}
+
+/*!
\class QOpenGLContext
\inmodule QtGui
\since 5.0
@@ -336,23 +357,14 @@ QOpenGLContext *QOpenGLContextPrivate::setCurrentContext(QOpenGLContext *context
return previous;
}
-/*!
- \internal
-
- This function is used by the Qt WebEngine to set up context sharing
- across multiple windows. Do not use it for any other purpose.
-*/
void QOpenGLContextPrivate::setGlobalShareContext(QOpenGLContext *context)
{
- global_share_context = context;
+ qt_gl_set_global_share_context(context);
}
-/*!
- \internal
-*/
QOpenGLContext *QOpenGLContextPrivate::globalShareContext()
{
- return global_share_context;
+ return qt_gl_global_share_context();
}
int QOpenGLContextPrivate::maxTextureSize()