Fix T80630: potential crash in volume grids in Eevee shaders
Found by address sanitizer.
This commit is contained in:
parent
8f7ab26935
commit
7177a580cc
Notes:
blender-bot
2023-02-14 09:17:57 +01:00
Referenced by issue #80630, Use-after-free when rendering material previews Referenced by issue #80396, Potential candidates for corrective releases Referenced by issue #77348, Blender LTS: Maintenance Task 2.83
|
@ -459,6 +459,7 @@ GPUNodeLink *GPU_volume_grid(GPUMaterial *mat,
|
|||
GPUNodeLink *transform_link = gpu_node_link_create();
|
||||
transform_link->link_type = GPU_NODE_LINK_VOLUME_GRID_TRANSFORM;
|
||||
transform_link->volume_grid = link->volume_grid;
|
||||
transform_link->volume_grid->users++;
|
||||
|
||||
/* Two special cases, where we adjust the output values of smoke grids to
|
||||
* bring the into standard range without having to modify the grid values. */
|
||||
|
|
Loading…
Reference in New Issue