mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-02-02 17:54:05 +00:00
oops, forgot to make sure the gl program is actually free'd.
This commit is contained in:
parent
6f729f8cbf
commit
c8d0c8e217
@ -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();
|
||||
|
@ -100,6 +100,7 @@ public:
|
||||
void FreeProgram()
|
||||
{
|
||||
delete [] binary;
|
||||
binary = NULL;
|
||||
}
|
||||
|
||||
GLint Size()
|
||||
|
Loading…
x
Reference in New Issue
Block a user