From: Samuel Iglesias Gonsálvez Date: Mon, 16 Nov 2015 10:43:20 +0000 (+0100) Subject: glsl/nir: initialize precision field in glsl_struct_field constructor X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=58954e4daa5e874771e1a33320a4009249f2429a;p=mesa.git glsl/nir: initialize precision field in glsl_struct_field constructor Signed-off-by: Samuel Iglesias Gonsálvez Reviewed-by: Tapani Pälli --- diff --git a/src/glsl/nir/glsl_types.h b/src/glsl/nir/glsl_types.h index 2d44059cca5..d8a999ad44e 100644 --- a/src/glsl/nir/glsl_types.h +++ b/src/glsl/nir/glsl_types.h @@ -851,7 +851,8 @@ struct glsl_struct_field { glsl_struct_field(const struct glsl_type *_type, const char *_name) : type(_type), name(_name), location(-1), interpolation(0), centroid(0), - sample(0), matrix_layout(GLSL_MATRIX_LAYOUT_INHERITED), patch(0) + sample(0), matrix_layout(GLSL_MATRIX_LAYOUT_INHERITED), patch(0), + precision(GLSL_PRECISION_NONE) { /* empty */ }