Fix zero pointer access in renderer.
Change-Id: I185af453684c7223c0c9de103eb707d4918b8ae0 Reviewed-by: Robin Burchell <robin+qt@viroteck.net>
This commit is contained in:
parent
ffaf39e9a7
commit
607f2db351
|
@ -366,7 +366,7 @@ void Updater::visitTransformNode(Node *n)
|
|||
QSGTransformNode *tn = static_cast<QSGTransformNode *>(n->sgNode);
|
||||
|
||||
if (n->isBatchRoot) {
|
||||
if (m_added > 0 && m_roots.size() > 0)
|
||||
if (m_added > 0 && m_roots.last())
|
||||
renderer->registerBatchRoot(n, m_roots.last());
|
||||
tn->setCombinedMatrix(m_rootMatrices.last() * *m_combined_matrix_stack.last() * tn->matrix());
|
||||
|
||||
|
|
Loading…
Reference in New Issue