diff options
Diffstat (limited to 'src/platformsupport/eglconvenience/qeglplatformcontext_p.h')
-rw-r--r-- | src/platformsupport/eglconvenience/qeglplatformcontext_p.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/platformsupport/eglconvenience/qeglplatformcontext_p.h b/src/platformsupport/eglconvenience/qeglplatformcontext_p.h index c38af1dfda..7002c8b9c2 100644 --- a/src/platformsupport/eglconvenience/qeglplatformcontext_p.h +++ b/src/platformsupport/eglconvenience/qeglplatformcontext_p.h @@ -59,6 +59,8 @@ public: void (*getProcAddress(const QByteArray &procName)) (); QSurfaceFormat format() const; + bool isSharing() const { return m_shareContext != EGL_NO_CONTEXT; } + bool isValid() const { return m_eglContext != EGL_NO_CONTEXT; } EGLContext eglContext() const; @@ -67,6 +69,7 @@ protected: private: EGLContext m_eglContext; + EGLContext m_shareContext; EGLDisplay m_eglDisplay; EGLenum m_eglApi; |