diff options
author | Tor Arne Vestbø <tor.arne.vestbo@qt.io> | 2020-06-29 19:53:36 +0200 |
---|---|---|
committer | Tor Arne Vestbø <tor.arne.vestbo@qt.io> | 2020-07-01 15:05:02 +0200 |
commit | a94b4f1b1483b8cace0e34dd979c868e50770dc1 (patch) | |
tree | eab66f9f28c55bc4405f63ddc696ca3af1c19cd7 /src/plugins/platforms/windows/qwindowsglcontext.h | |
parent | 46d4c2022d9d787658fbbb8f4c85cd77b2adeb54 (diff) |
Remove explicit tracking of QOpenGLContext in QWindowsGLContext
QPlatformOpenGLContext takes care of that via QPlatformOpenGLContextPrivate,
which is set up in QOpenGLContext::create().
Change-Id: I1088c2e18efe6023c8e76f126d967a607746e980
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Diffstat (limited to 'src/plugins/platforms/windows/qwindowsglcontext.h')
-rw-r--r-- | src/plugins/platforms/windows/qwindowsglcontext.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/plugins/platforms/windows/qwindowsglcontext.h b/src/plugins/platforms/windows/qwindowsglcontext.h index 8794368fe4..d0b87cac7d 100644 --- a/src/plugins/platforms/windows/qwindowsglcontext.h +++ b/src/plugins/platforms/windows/qwindowsglcontext.h @@ -204,7 +204,7 @@ class QWindowsGLContext : public QWindowsOpenGLContext public: explicit QWindowsGLContext(QOpenGLStaticContext *staticContext, QOpenGLContext *context); ~QWindowsGLContext() override; - bool isSharing() const override { return m_context->shareHandle(); } + bool isSharing() const override { return context()->shareHandle(); } bool isValid() const override { return m_renderingContext && !m_lost; } QSurfaceFormat format() const override { return m_obtainedFormat; } @@ -228,7 +228,6 @@ private: bool updateObtainedParams(HDC hdc, int *obtainedSwapInterval = nullptr); QOpenGLStaticContext *m_staticContext; - QOpenGLContext *m_context; QSurfaceFormat m_obtainedFormat; HGLRC m_renderingContext; std::vector<QOpenGLContextData> m_windowContexts; |