From e1e9295926bbf170d40a83246abe8b94d4a3b660 Mon Sep 17 00:00:00 2001 From: Miikka Heikkinen Date: Mon, 30 Apr 2012 13:14:58 +0300 Subject: 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 --- src/plugins/platforms/windows/qwindowsglcontext.h | 1 + 1 file changed, 1 insertion(+) 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; } -- cgit v1.2.3