diff options
author | Miikka Heikkinen <miikka.heikkinen@digia.com> | 2012-04-30 13:14:58 +0300 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-04-30 14:01:22 +0200 |
commit | e1e9295926bbf170d40a83246abe8b94d4a3b660 (patch) | |
tree | 9431476b201d167fc9dbb8fd3d5e29f66beec39c /src/plugins | |
parent | fa94f01489611f2c72d1678b4d9439a584e7c4f9 (diff) |
Fix the tst_QOpenGL::sharedResourceCleanup() test case in Windows
QWindowsGLContext was returning always false for isSharing() query,
as it was falling back to default implementation.
Task-number: QTBUG-24192
Change-Id: I884d559d69545ef85a0d07d7287bc50ce459c1bd
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
Diffstat (limited to 'src/plugins')
-rw-r--r-- | src/plugins/platforms/windows/qwindowsglcontext.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/plugins/platforms/windows/qwindowsglcontext.h b/src/plugins/platforms/windows/qwindowsglcontext.h index 5aac636f83..a0489e2d02 100644 --- a/src/plugins/platforms/windows/qwindowsglcontext.h +++ b/src/plugins/platforms/windows/qwindowsglcontext.h @@ -152,6 +152,7 @@ public: explicit QWindowsGLContext(const QOpenGLStaticContextPtr &staticContext, QOpenGLContext *context); virtual ~QWindowsGLContext(); + bool isSharing() const { return m_context->shareHandle(); } bool isValid() const { return m_renderingContext; } virtual QSurfaceFormat format() const { return m_obtainedFormat; } |