From 3f17d9f27463e876d94e9cf8668715f168e2b850 Mon Sep 17 00:00:00 2001 From: Andy Nichols <andy.nichols@qt.io> Date: Thu, 16 May 2019 11:36:29 +0200 Subject: [PATCH] Initialzie shaderinfo to nullptr (fixes qmlplugindump crash) --- src/quick3d/qdemoncustommaterial.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/quick3d/qdemoncustommaterial.h b/src/quick3d/qdemoncustommaterial.h index 71aaba4a..844905e3 100644 --- a/src/quick3d/qdemoncustommaterial.h +++ b/src/quick3d/qdemoncustommaterial.h @@ -569,7 +569,7 @@ private: bool m_hasRefraction = false; bool m_hasVolumetricDF = false; QString m_source; - QDemonCustomMaterialShaderInfo *m_shaderInfo; + QDemonCustomMaterialShaderInfo *m_shaderInfo = nullptr; QVector<QDemonCustomMaterialRenderPass *> m_passes; bool m_alwaysDirty = false; }; -- GitLab