1
0
mirror of https://github.com/RPCS3/rpcs3.git synced 2024-11-26 04:32:35 +01:00

vk: Clamp unreleased texture metric

- TODO: Find the leaking references
This commit is contained in:
kd-11 2017-09-23 16:30:32 +03:00
parent 393e3b702f
commit e7db0c7d99

View File

@ -709,7 +709,7 @@ namespace vk
const u32 get_unreleased_textures_count() const override
{
return m_unreleased_texture_objects + m_discardable_storage.size();
return std::max(m_unreleased_texture_objects, 0) + (u32)m_discardable_storage.size();
}
};
}