40035046ca2144552be81bc92967c704c82477ab
Set the number of planes based on the number of pass channels. If the pass contains 2 passes or more than 4 passes set the number of planes to the previously used value of 32. This is needed because quite some areas check for the number of planes for various optimizations. For example, this is one of the factors which make IMB_create_gpu_texture() to choose the texture format. If the number of planes for the depth pass is set to the previously used this function will never consider using single channel GPU texture. Unfortunately, this change is not enough to make the GPU texture to use single channel format as the color space of the image buffer is also checked, and that is nullptr which means scene linear.
…
Blender
Blender is the free and open source 3D creation suite. It supports the entirety of the 3D pipeline-modeling, rigging, animation, simulation, rendering, compositing, motion tracking and video editing.
Project Pages
Development
License
Blender as a whole is licensed under the GNU General Public License, Version 3. Individual files may have a different, but compatible license.
See blender.org/about/license for details.
Description
Languages
C++
78%
Python
11%
C
6.3%
GLSL
2.2%
CMake
1.3%
Other
1.1%
