diff options
author | Richard Antalik <richardantalik@gmail.com> | 2020-12-20 03:51:23 +0300 |
---|---|---|
committer | Richard Antalik <richardantalik@gmail.com> | 2020-12-20 05:51:56 +0300 |
commit | c4ff91aab76a9987ec109a733d39ff800ccbd15b (patch) | |
tree | 27f12a22b2778322f38220bdd822fc6a3411fac9 /source/blender/sequencer/intern/image_cache.h | |
parent | 0144b7094899798625f98cb08d90db2f05f329cb (diff) |
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.
Diffstat (limited to 'source/blender/sequencer/intern/image_cache.h')
-rw-r--r-- | source/blender/sequencer/intern/image_cache.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/sequencer/intern/image_cache.h b/source/blender/sequencer/intern/image_cache.h index ed2d5dee910..ab28b1d3204 100644 --- a/source/blender/sequencer/intern/image_cache.h +++ b/source/blender/sequencer/intern/image_cache.h @@ -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 } |