oops, forgot to make sure the gl program is actually free'd.

This commit is contained in:
Shawn Hoffman authored and Sonicadvance1 committed 2012-10-09 23:54:18 -05:00
1 parent e3854ded73
commit 108722bed0
2 files changed
+4

No files matched your search

@@ -219,7 +219,10 @@ void ProgramShaderCache::Shutdown(void)
{
PCache::iterator iter = pshaders.begin();
for (; iter != pshaders.end(); ++iter)
{
g_program_disk_cache.Append(iter->second.uid, iter->second.GetProgram(), iter->second.Size());
iter->second.FreeProgram();
}
g_program_disk_cache.Sync();
g_program_disk_cache.Close();