Fix the tst_QOpenGL::sharedResourceCleanup() test case in Windows
authorMiikka Heikkinen <miikka.heikkinen@digia.com>
Mon, 30 Apr 2012 10:14:58 +0000 (13:14 +0300)
committerQt by Nokia <qt-info@nokia.com>
Mon, 30 Apr 2012 12:01:22 +0000 (14:01 +0200)
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>
src/plugins/platforms/windows/qwindowsglcontext.h

index 5aac636..a0489e2 100644 (file)
@@ -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; }