Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Antalik <richardantalik@gmail.com>2020-12-20 03:51:23 +0300
committerRichard Antalik <richardantalik@gmail.com>2020-12-20 05:51:56 +0300
commitc4ff91aab76a9987ec109a733d39ff800ccbd15b (patch)
tree27f12a22b2778322f38220bdd822fc6a3411fac9 /source/blender/sequencer/intern/image_cache.h
parent0144b7094899798625f98cb08d90db2f05f329cb (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.h2
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
}