Commit: 78b5050ff46646af748272bddd7a78506defab11
Author: Charlie Jolly
Date:   Fri Oct 15 15:01:03 2021 +0100
Branches: master
https://developer.blender.org/rB78b5050ff46646af748272bddd7a78506defab11

Cycles: Voronoi noise, fix uninitialised variable

Caused a debug crash in Windows MSVS.

Reviewed By: brecht

Differential Revision: https://developer.blender.org/D12873

===================================================================

M       intern/cycles/kernel/svm/svm_voronoi.h

===================================================================

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,

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
List details, subscription details or unsubscribe:
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to