From 9ca731ed48c8d67357b6684575f71b9dcbc37259 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tor=20Arne=20Vestb=C3=B8?= Date: Mon, 29 Jun 2020 19:56:39 +0200 Subject: In-class initialize QWindowsGLContext members Change-Id: Icd84e96706d5779656d7311755596110494eacd8 Reviewed-by: Friedemann Kleint --- src/plugins/platforms/windows/qwindowsglcontext.cpp | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'src/plugins/platforms/windows/qwindowsglcontext.cpp') diff --git a/src/plugins/platforms/windows/qwindowsglcontext.cpp b/src/plugins/platforms/windows/qwindowsglcontext.cpp index 4b866f16c5..c1921810e7 100644 --- a/src/plugins/platforms/windows/qwindowsglcontext.cpp +++ b/src/plugins/platforms/windows/qwindowsglcontext.cpp @@ -1051,14 +1051,7 @@ QOpenGLStaticContext *QOpenGLStaticContext::create(bool softwareRendering) QWindowsGLContext::QWindowsGLContext(QOpenGLStaticContext *staticContext, QOpenGLContext *context) : - m_staticContext(staticContext), - m_renderingContext(nullptr), - m_pixelFormat(0), - m_extensionsUsed(false), - m_swapInterval(-1), - m_ownsContext(true), - m_getGraphicsResetStatus(nullptr), - m_lost(false) + m_staticContext(staticContext) { if (!m_staticContext) // Something went very wrong. Stop here, isValid() will return false. return; -- cgit v1.2.3