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:
authorJeroen Bakker <jeroen@blender.org>2022-02-14 12:33:56 +0300
committerJeroen Bakker <jeroen@blender.org>2022-02-14 12:33:56 +0300
commitab71d833c775dce9efa25398ad3079729d404951 (patch)
tree18c5d089bb17606f685abc4674f2c98a4a8cdaa8 /source/blender/blenkernel/intern/image.c
parentf0e32ef4ff34f8cf8ff85706fd863a858f5849b6 (diff)
Phase out IMA_GPU_REFRESH.
IMA_GPU_REFRESH is replaced by BKE_image_partial_update_mark_full_update and should not be used anymore.
Diffstat (limited to 'source/blender/blenkernel/intern/image.c')
-rw-r--r--source/blender/blenkernel/intern/image.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/blenkernel/intern/image.c b/source/blender/blenkernel/intern/image.c
index 040257fe976..bf6ede77a79 100644
--- a/source/blender/blenkernel/intern/image.c
+++ b/source/blender/blenkernel/intern/image.c
@@ -4377,7 +4377,7 @@ RenderResult *BKE_image_acquire_renderresult(Scene *scene, Image *ima)
}
else {
rr = BKE_image_get_renderslot(ima, ima->render_slot)->render;
- ima->gpuflag |= IMA_GPU_REFRESH;
+ BKE_image_partial_update_mark_full_update(ima);
}
/* set proper views */
@@ -5745,7 +5745,7 @@ void BKE_image_user_frame_calc(Image *ima, ImageUser *iuser, int cfra)
/* NOTE: a single texture and refresh doesn't really work when
* multiple image users may use different frames, this is to
* be improved with perhaps a GPU texture cache. */
- ima->gpuflag |= IMA_GPU_REFRESH;
+ BKE_image_partial_update_mark_full_update(ima);
ima->gpuframenr = iuser->framenr;
}