diff options
author | Tor Arne Vestbø <tor.arne.vestbo@qt.io> | 2020-06-29 19:56:39 +0200 |
---|---|---|
committer | Tor Arne Vestbø <tor.arne.vestbo@qt.io> | 2020-07-01 15:05:09 +0200 |
commit | 9ca731ed48c8d67357b6684575f71b9dcbc37259 (patch) | |
tree | dcd928c5dd72667c20f5424e546d59b5d353b6b6 /src/plugins/platforms/windows/qwindowsglcontext.h | |
parent | a94b4f1b1483b8cace0e34dd979c868e50770dc1 (diff) |
In-class initialize QWindowsGLContext members
Change-Id: Icd84e96706d5779656d7311755596110494eacd8
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 | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/plugins/platforms/windows/qwindowsglcontext.h b/src/plugins/platforms/windows/qwindowsglcontext.h index d0b87cac7d..608cc9cfea 100644 --- a/src/plugins/platforms/windows/qwindowsglcontext.h +++ b/src/plugins/platforms/windows/qwindowsglcontext.h @@ -227,17 +227,17 @@ private: inline void releaseDCs(); bool updateObtainedParams(HDC hdc, int *obtainedSwapInterval = nullptr); - QOpenGLStaticContext *m_staticContext; + QOpenGLStaticContext *m_staticContext = nullptr; QSurfaceFormat m_obtainedFormat; - HGLRC m_renderingContext; + HGLRC m_renderingContext = nullptr; std::vector<QOpenGLContextData> m_windowContexts; PIXELFORMATDESCRIPTOR m_obtainedPixelFormatDescriptor; - int m_pixelFormat; - bool m_extensionsUsed; - int m_swapInterval; - bool m_ownsContext; - GlGetGraphicsResetStatusArbType m_getGraphicsResetStatus; - bool m_lost; + int m_pixelFormat = 0; + bool m_extensionsUsed = false; + int m_swapInterval = -1; + bool m_ownsContext = true; + GlGetGraphicsResetStatusArbType m_getGraphicsResetStatus = nullptr; + bool m_lost = false; }; #endif QT_END_NAMESPACE |