Fix release derp

This commit is contained in:
Jack Andersen 2015-12-17 12:10:14 -10:00
parent bb35ded399
commit 11cc456b4e
1 changed files with 2 additions and 0 deletions

View File

@ -590,8 +590,10 @@ IGraphicsDataToken GLDataFactory::commit()
return IGraphicsDataToken(this, nullptr); return IGraphicsDataToken(this, nullptr);
std::unique_lock<std::mutex> lk(m_committedMutex); std::unique_lock<std::mutex> lk(m_committedMutex);
GLData* retval = m_deferredData; GLData* retval = m_deferredData;
#ifndef NDEBUG
for (std::unique_ptr<GLShaderDataBinding>& b : retval->m_SBinds) for (std::unique_ptr<GLShaderDataBinding>& b : retval->m_SBinds)
b->m_committed = true; b->m_committed = true;
#endif
m_deferredData = nullptr; m_deferredData = nullptr;
m_committedData.insert(retval); m_committedData.insert(retval);
/* Let's go ahead and flush to ensure our data gets to the GPU /* Let's go ahead and flush to ensure our data gets to the GPU