mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-24 09:51:58 +00:00
oops, forgot to make sure the gl program is actually free'd.
This commit is contained in:
parent
e3854ded73
commit
108722bed0
2 changed files with 4 additions and 0 deletions
|
@ -219,7 +219,10 @@ void ProgramShaderCache::Shutdown(void)
|
||||||
{
|
{
|
||||||
PCache::iterator iter = pshaders.begin();
|
PCache::iterator iter = pshaders.begin();
|
||||||
for (; iter != pshaders.end(); ++iter)
|
for (; iter != pshaders.end(); ++iter)
|
||||||
|
{
|
||||||
g_program_disk_cache.Append(iter->second.uid, iter->second.GetProgram(), iter->second.Size());
|
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.Sync();
|
||||||
g_program_disk_cache.Close();
|
g_program_disk_cache.Close();
|
||||||
|
|
|
@ -100,6 +100,7 @@ public:
|
||||||
void FreeProgram()
|
void FreeProgram()
|
||||||
{
|
{
|
||||||
delete [] binary;
|
delete [] binary;
|
||||||
|
binary = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
GLint Size()
|
GLint Size()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue