m_primaryBuffer could be nullptr when a pipeline was inactive before, causing a crash
mentioned in commit 85c4ebfa