diff options
author | Brecht Van Lommel <brecht@blender.org> | 2020-09-15 15:09:01 +0300 |
---|---|---|
committer | Jeroen Bakker <jeroen@blender.org> | 2020-10-07 11:06:27 +0300 |
commit | 38d1bd9cc6d645b710d0e7438add9a882d995368 (patch) | |
tree | d3626bb02b24df1d7600e85ef1c65e138b1d1590 /source | |
parent | 055c0f907733a070e3ecc6484981742fa7f433dd (diff) |
Fix T80630: potential crash in volume grids in Eevee shaders
Found by address sanitizer.
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/gpu/intern/gpu_node_graph.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/gpu/intern/gpu_node_graph.c b/source/blender/gpu/intern/gpu_node_graph.c index 876a6bef670..204021516a6 100644 --- a/source/blender/gpu/intern/gpu_node_graph.c +++ b/source/blender/gpu/intern/gpu_node_graph.c @@ -440,6 +440,7 @@ GPUNodeLink *GPU_volume_grid(GPUMaterial *mat, const char *name) 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. */ |