fixes double free crash on GLProgramStateCache

This commit is contained in:
Ricardo Quesada 2014-05-09 21:06:02 -07:00
parent 029c38a789
commit 605fe8e4f3
1 changed files with 0 additions and 5 deletions

View File

@ -33,16 +33,11 @@ GLProgramStateCache* GLProgramStateCache::s_instance = nullptr;
GLProgramStateCache::GLProgramStateCache()
{
s_instance = nullptr;
}
GLProgramStateCache::~GLProgramStateCache()
{
for (auto itr = _glProgramStates.begin(); itr != _glProgramStates.end(); itr++) {
itr->second->release();
}
_glProgramStates.clear();
s_instance = nullptr;
}
GLProgramStateCache* GLProgramStateCache::getInstance()