Fixed segfault when garbage collecting Shader objects

This commit is contained in:
Alex Szpakowski
2014-05-14 20:00:59 -03:00
parent 976c26aa21
commit cb01e3f4d1
+2 -3
View File
@@ -98,10 +98,9 @@ Shader::~Shader()
detach();
for (auto it = boundRetainables.begin(); it != boundRetainables.end(); ++it)
{
it->second->release();
boundRetainables.erase(it);
}
boundRetainables.clear();
unloadVolatile();
}