Cleanup: old-style-declaration warning

This commit is contained in:
Campbell Barton 2021-09-24 21:10:01 +10:00
parent e8c6e32348
commit dfe01628b0
1 changed files with 1 additions and 1 deletions

View File

@ -37,7 +37,7 @@ static int node_shader_gpu_hair_info(GPUMaterial *mat,
GPUNodeStack *out)
{
/* Length: don't request length if not needed. */
const static float zero = 0;
static const float zero = 0;
GPUNodeLink *length_link = (!out[2].hasoutput) ? GPU_constant(&zero) :
GPU_attribute(mat, CD_HAIRLENGTH, "");
return GPU_stack_link(mat, node, "node_hair_info", in, out, length_link);