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:
authorBrecht Van Lommel <brecht@blender.org>2020-09-15 15:09:01 +0300
committerBrecht Van Lommel <brecht@blender.org>2020-09-15 15:43:50 +0300
commit7177a580ccd4c31af83254fe71f06c1c1d868c44 (patch)
tree650d687b6007a63cd351b40d813465d5d022ff54 /source/blender/gpu/intern/gpu_node_graph.c
parent8f7ab269355bf9d15ad5b405017c1a7eb486d64f (diff)
Fix T80630: potential crash in volume grids in Eevee shaders
Found by address sanitizer.
Diffstat (limited to 'source/blender/gpu/intern/gpu_node_graph.c')
-rw-r--r--source/blender/gpu/intern/gpu_node_graph.c1
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 b48b1d53dee..c890d56994f 100644
--- a/source/blender/gpu/intern/gpu_node_graph.c
+++ b/source/blender/gpu/intern/gpu_node_graph.c
@@ -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. */