fix for using uninitialized value in gpu_shader_material
This commit is contained in:
parent
d5984b2d50
commit
65d1e27ff5
@ -82,8 +82,6 @@ add_library(bli_lib
|
||||
"../../../source/blender/blenlib/intern/BLI_memarena.c"
|
||||
)
|
||||
|
||||
message(STATUS "EEEk ${SRC_NEW}")
|
||||
|
||||
|
||||
find_package(OpenGL REQUIRED)
|
||||
|
||||
|
@ -226,7 +226,7 @@ static int gpu_shader_material(GPUMaterial *mat, bNode *node, GPUNodeStack *in,
|
||||
GPUShadeInput shi;
|
||||
GPUShadeResult shr;
|
||||
bNodeSocket *sock;
|
||||
char hasinput[NUM_MAT_IN];
|
||||
char hasinput[NUM_MAT_IN]= {'\0'};
|
||||
int i;
|
||||
|
||||
/* note: cannot use the in[]->hasinput flags directly, as these are not necessarily
|
||||
|
Loading…
Reference in New Issue
Block a user