Change-Id: Ib291b9b3bbf2f421998e2c8d92e34fb88f53a5c7
Reviewed-on: http://codereview.qt.nokia.com/3848
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Kim M. Kalland <kim.kalland@nokia.com>
{
QSGShaderEffectNode *node = static_cast<QSGShaderEffectNode *>(oldNode);
+ // In the case of a bad vertex shader, don't try to create a node...
+ if (m_source.attributeNames.isEmpty()) {
+ if (node)
+ delete node;
+ return 0;
+ }
+
if (!node) {
node = new QSGShaderEffectNode;
m_programDirty = true;