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
1 changed files with 1 additions and 1 deletions

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();
}
};
}