diff options
Diffstat (limited to 'src/opengl')
-rw-r--r-- | src/opengl/qgl.h | 2 | ||||
-rw-r--r-- | src/opengl/qgl_qpa.cpp | 6 |
2 files changed, 8 insertions, 0 deletions
diff --git a/src/opengl/qgl.h b/src/opengl/qgl.h index c9908ad01f..28c56a969a 100644 --- a/src/opengl/qgl.h +++ b/src/opengl/qgl.h @@ -394,7 +394,9 @@ public: #ifdef Q_WS_QPA static QGLContext *fromGuiGLContext(QGuiGLContext *platformContext); + QGuiGLContext *contextHandle() const; #endif + protected: virtual bool chooseContext(const QGLContext* shareContext = 0); diff --git a/src/opengl/qgl_qpa.cpp b/src/opengl/qgl_qpa.cpp index 7a4fb2c1a7..cfd651e39d 100644 --- a/src/opengl/qgl_qpa.cpp +++ b/src/opengl/qgl_qpa.cpp @@ -386,6 +386,12 @@ QGLContext::QGLContext(QGuiGLContext *context) d->setupSharing(); } +QGuiGLContext *QGLContext::contextHandle() const +{ + Q_D(const QGLContext); + return d->guiGlContext; +} + /*! Returns a OpenGL context for the window context specified by \a windowContext */ |