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
path: root/intern
diff options
context:
space:
mode:
authorCharlie Jolly <charlie>2021-10-15 17:01:03 +0300
committerCharlie Jolly <mistajolly@gmail.com>2021-10-15 17:01:10 +0300
commit78b5050ff46646af748272bddd7a78506defab11 (patch)
tree2dc22b05e82c92ae1ba37533f1b0e8f0a18587dc /intern
parent2f36762defba12f2fc27e538a0c4002c36889ca3 (diff)
Cycles: Voronoi noise, fix uninitialised variable
Caused a debug crash in Windows MSVS. Reviewed By: brecht Differential Revision: https://developer.blender.org/D12873
Diffstat (limited to 'intern')
-rw-r--r--intern/cycles/kernel/svm/svm_voronoi.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/intern/cycles/kernel/svm/svm_voronoi.h b/intern/cycles/kernel/svm/svm_voronoi.h
index e7112087e17..062a8bde415 100644
--- a/intern/cycles/kernel/svm/svm_voronoi.h
+++ b/intern/cycles/kernel/svm/svm_voronoi.h
@@ -1001,7 +1001,7 @@ ccl_device_noinline int svm_node_tex_voronoi(ccl_global const KernelGlobals *kg,
}
case 2: {
float2 coord_2d = make_float2(coord.x, coord.y);
- float2 position_out_2d;
+ float2 position_out_2d = zero_float2();
switch (voronoi_feature) {
case NODE_VORONOI_F1:
voronoi_f1_2d(coord_2d,