VSE: Fix incorrect cache memory usage calculation

If image is cached twice, it's size has been counted twice as well, but
only image reference count is increased, not memory usage.

Use `MEM_get_memory_in_use()` instead of size own tracking.
This commit is contained in:
2020-12-20 01:51:23 +01:00
parent 0144b70948
commit c4ff91aab7
2 changed files with 4 additions and 15 deletions

View File

@@ -65,7 +65,7 @@ void seq_cache_cleanup_sequence(struct Scene *scene,
struct Sequence *seq_changed,
int invalidate_types,
bool force_seq_changed_range);
bool seq_cache_is_full(struct Scene *scene);
bool seq_cache_is_full(void);
#ifdef __cplusplus
}