mirror of https://github.com/RPCS3/rpcs3.git
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
|
@ -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…
Reference in New Issue