mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-04-20 19:45:20 +00:00
vk: Clamp unreleased texture metric
- TODO: Find the leaking references
This commit is contained in:
parent
393e3b702f
commit
e7db0c7d99
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||
}
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue