Blender Git Commit Log

Git Commits -> Revision ebaa3fc

Revision ebaa3fc by Jeroen Bakker (master)
January 25, 2021, 10:27 (GMT)
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.

Commit Details:

Full Hash: ebaa3fcedd2388c6e1a213911b79bfdc1e49df78
Parent Commit: 02404de
Lines Changed: +16, -7

3 Modified Paths:

/source/blender/blenkernel/intern/image_gpu.c (+14, -4) (Diff)
/source/blender/draw/engines/image/image_engine.c (+1, -3) (Diff)
/source/blender/makesdna/DNA_image_types.h (+1, -0) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021