mirror of
https://github.com/RPCS3/rpcs3.git
synced 2026-04-09 08:25:09 +00:00
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:
commit
4c133ab5bf
1 changed files with 7 additions and 0 deletions
|
|
@ -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();
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue