Clean up invalidated resources

This commit is contained in:
kd-11 2016-03-09 21:11:22 +03:00
parent 4b0b65c0c5
commit ee0eb70de4
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();
}