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>2021-01-25 13:17:03 +0300
committerJeroen Bakker <jeroen@blender.org>2021-01-25 13:27:55 +0300
commitebaa3fcedd2388c6e1a213911b79bfdc1e49df78 (patch)
treebe5ad658f0612481c97d0e25900be3605652b8fc /source/blender/makesdna
parent02404ded80ac7d861a45a36960d0a3b279bbf721 (diff)
Fix T84398: Multiview images show only one view.
The `image_get_gpu_texture` didn't use the iuser->view_index but recalculated the requested view again. This lead to inconsistent behavior when switching between multi view textures or stereo textures. This has been fixed by ensuring that the `iuser->view_index` is always used. An Image has only place to store 2 view textures. This is done for right/left eye compositing. A multi view texture can have more views. This would lead to reading and writing to unallocated space. When a multiview texture is requested that is larger than 1. It will always be cached as being the first eye. The `gpu_view` of the Image is also used as a cache key to check this.
Diffstat (limited to 'source/blender/makesdna')
-rw-r--r--source/blender/makesdna/DNA_image_types.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/makesdna/DNA_image_types.h b/source/blender/makesdna/DNA_image_types.h
index eb03e047c90..5db30b70449 100644
--- a/source/blender/makesdna/DNA_image_types.h
+++ b/source/blender/makesdna/DNA_image_types.h
@@ -157,6 +157,7 @@ typedef struct Image {
short gpuflag;
short gpu_pass;
short gpu_layer;
+ short gpu_view;
char _pad2[6];
/** Deprecated. */