Added proper ref-counting.

This commit is contained in:
hiker 2015-06-10 10:33:06 +10:00
parent cb510840ae
commit 0162407ff3

View File

@ -146,7 +146,8 @@ void Shaders::destroy()
for (i = 0; i < ES_COUNT; i++)
{
if (i == ES_GAUSSIAN3V || !m_callbacks[i]) continue;
delete m_callbacks[i];
m_callbacks[i]->drop();
m_callbacks[i] = NULL;
}
m_has_been_initialised = false;
} // destroy