Fix: No image GPU texture update for different requests #105547

Merged
Omar Emara merged 3 commits from OmarEmaraDev/blender:fix-no-update-for-multi-pass-gpu-textures into main 2023-03-21 14:57:24 +01:00

3 Commits

Author SHA1 Message Date
Omar Emara 67f733af0c Update documentation and fix spelling 2023-03-21 13:49:26 +02:00
Omar Emara 09138963cd Add a BKE function to ensure GPU image cache 2023-03-11 21:01:36 +02:00
Omar Emara c44c68598d Fix: No image GPU texture update for different requests
The image_get_gpu_texture function checks if the requested properties
are different from the last requested ones, yet it does nothing to
update the texture if it is indeed the case. This patch marks the image
for an update in that case. While marking an update during a request
might seem out of place, that full update marking is immediately handled
by freeing the no longer valid cached GPU texture in
image_gpu_texture_try_partial_update().
2023-03-07 20:28:51 +02:00