Recycling needs to be done always, and currently here is the only time
it's supposed to happen each tick.
Change-Id: Ia03b2a6d1d884bdee784b47c447745c7e3aee2c6
Reviewed-on: http://codereview.qt-project.org/4508
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Martin Jones <martin.jones@nokia.com>
bool oldClear = m_empty;
m_empty = true;
foreach (QSGParticleGroupData* gd, m_groupData)//Recycle all groups and see if they're out of live particles
- m_empty = m_empty && gd->recycle();
+ m_empty = gd->recycle() && m_empty;
if (m_spriteEngine)
m_spriteEngine->updateSprites(m_timeInt);