diff options
author | Sergey Sharybin <sergey@blender.org> | 2022-02-10 12:42:25 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey@blender.org> | 2022-02-10 12:42:25 +0300 |
commit | 507a4deef1492b1f44af89783e64401727be6f33 (patch) | |
tree | 8486a1bc9ffd99a005c2654153140c49c694813e /source/blender/draw/engines/image | |
parent | d1202bd641ca2652fac9620bc06dad757584b1e0 (diff) |
Fix invalid creation of partial image updater
Diffstat (limited to 'source/blender/draw/engines/image')
-rw-r--r-- | source/blender/draw/engines/image/image_partial_updater.hh | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/source/blender/draw/engines/image/image_partial_updater.hh b/source/blender/draw/engines/image/image_partial_updater.hh index f0c1db2331a..e74c31e9e8a 100644 --- a/source/blender/draw/engines/image/image_partial_updater.hh +++ b/source/blender/draw/engines/image/image_partial_updater.hh @@ -32,11 +32,11 @@ struct PartialImageUpdater { /** * \brief Ensure that there is a partial update user for the given image. */ - void ensure_image(const Image *image) + void ensure_image(const Image *new_image) { - if (!is_valid(image)) { + if (!is_valid(new_image)) { free(); - create(image); + create(new_image); } } @@ -60,11 +60,11 @@ struct PartialImageUpdater { return user != nullptr; } - void create(const Image *image) + void create(const Image *new_image) { BLI_assert(user == nullptr); - user = BKE_image_partial_update_create(image); - image = image; + user = BKE_image_partial_update_create(new_image); + image = new_image; } void free() |