Merge pull request #1559 from kd-11/gl_memory_leak_fix

gl: Clean up invalidated resources to fix mem leak
This commit is contained in:
Ivan 2016-03-09 21:58:46 +03:00
commit 4c133ab5bf
1 changed files with 7 additions and 0 deletions

View File

@ -1085,6 +1085,13 @@ void GLGSRender::flip(int buffer)
}
m_frame->flip(m_context);
for (auto &tex : m_rtts.invalidated_resources)
{
tex->remove();
}
m_rtts.invalidated_resources.clear();
}