diff options
author | Holger Hans Peter Freyther <holger@moiji-mobile.com> | 2015-03-31 22:58:02 +0200 |
---|---|---|
committer | Holger Freyther <holger+qt@freyther.de> | 2015-04-03 06:28:29 +0000 |
commit | 9a6b96d4de4124cedf6fb41836fcf299c6613d20 (patch) | |
tree | 7766dcfecd3e2246535a1fab6a20e212b85d4a88 /src/quick/scenegraph/qsgdefaultglyphnode_p.cpp | |
parent | b252c2d479523c5f584d1754c4f5c5744a15f6fc (diff) |
Address uninitialized scalar fields
Fixes Coverity CID 10732, 10734, 10735, 10736, 10739, 10740
Change-Id: Idebb0bdaf42ceb06cd86c73592138e758a8a87c9
Reviewed-by: Gunnar Sletta <gunnar@sletta.org>
Diffstat (limited to 'src/quick/scenegraph/qsgdefaultglyphnode_p.cpp')
-rw-r--r-- | src/quick/scenegraph/qsgdefaultglyphnode_p.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/quick/scenegraph/qsgdefaultglyphnode_p.cpp b/src/quick/scenegraph/qsgdefaultglyphnode_p.cpp index ffee43852d..ec9106e86b 100644 --- a/src/quick/scenegraph/qsgdefaultglyphnode_p.cpp +++ b/src/quick/scenegraph/qsgdefaultglyphnode_p.cpp @@ -103,8 +103,11 @@ char const *const *QSGTextMaskShader::attributeNames() const } QSGTextMaskShader::QSGTextMaskShader(QFontEngine::GlyphFormat glyphFormat) - : QSGMaterialShader(*new QSGMaterialShaderPrivate), - m_glyphFormat(glyphFormat) + : QSGMaterialShader(*new QSGMaterialShaderPrivate) + , m_matrix_id(-1) + , m_color_id(-1) + , m_textureScale_id(-1) + , m_glyphFormat(glyphFormat) { setShaderSourceFile(QOpenGLShader::Vertex, QStringLiteral(":/scenegraph/shaders/textmask.vert")); setShaderSourceFile(QOpenGLShader::Fragment, QStringLiteral(":/scenegraph/shaders/textmask.frag")); |