From d50a57f408a9cc160c187c012f51b8fa89738858 Mon Sep 17 00:00:00 2001 From: Ulf Hermann Date: Mon, 18 Apr 2016 18:24:53 +0200 Subject: Drop the class name from shader effect material keys Shader effects with equal program source code can use the same compiled shaders. There is no need to duplicate the data for each QML component. Task-number: QTBUG-42055 Change-Id: Iae86890ebf0ad6ef34a63565b8a01d0fcd903fbc Reviewed-by: Michael Brasser Reviewed-by: Gunnar Sletta --- src/particles/qquickcustomparticle.cpp | 2 -- 1 file changed, 2 deletions(-) (limited to 'src/particles/qquickcustomparticle.cpp') diff --git a/src/particles/qquickcustomparticle.cpp b/src/particles/qquickcustomparticle.cpp index 5e244ba02c..e62c6f556b 100644 --- a/src/particles/qquickcustomparticle.cpp +++ b/src/particles/qquickcustomparticle.cpp @@ -284,8 +284,6 @@ QQuickShaderEffectNode *QQuickCustomParticle::prepareNextFrame(QQuickShaderEffec builder.appendSourceFile(QStringLiteral(":/particles/shaders/customparticle.vert")); s.sourceCode[Key::VertexShader] = builder.source() + s.sourceCode[Key::VertexShader]; - s.className = metaObject()->className(); - material->setProgramSource(s); material->attributes = m_common.attributes; foreach (QQuickShaderEffectNode* node, m_nodes) -- cgit v1.2.3