fix for using uninitialized value in gpu_shader_material

This commit is contained in:
Campbell Barton 2011-07-09 19:16:32 +00:00
parent d5984b2d50
commit 65d1e27ff5
2 changed files with 1 additions and 3 deletions

@ -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