diff options
author | Karol Herbst <[email protected]> | 2019-02-09 01:22:27 +0100 |
---|---|---|
committer | Karol Herbst <[email protected]> | 2019-02-09 13:52:15 +0100 |
commit | 49397a3c840b38f8c65705dd05d642c0beb4dea9 (patch) | |
tree | e6bfdc8bfc84a37119e1d48c2dcaade12a3faa3d | |
parent | 55e00a2ea8bb21ea0a3b1970bb112e4f44141f10 (diff) |
glsl_type: initialize offset and location to -1 for glsl_struct_field
Signed-off-by: Karol Herbst <[email protected]>
Reviewed-by: Jason Ekstrand <[email protected]>
-rw-r--r-- | src/compiler/glsl_types.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/compiler/glsl_types.h b/src/compiler/glsl_types.h index bf9be0f48fb..934dc479998 100644 --- a/src/compiler/glsl_types.h +++ b/src/compiler/glsl_types.h @@ -1083,7 +1083,7 @@ struct glsl_struct_field { unsigned implicit_sized_array:1; #ifdef __cplusplus glsl_struct_field(const struct glsl_type *_type, const char *_name) - : type(_type), name(_name), location(-1), offset(0), xfb_buffer(0), + : type(_type), name(_name), location(-1), offset(-1), xfb_buffer(0), xfb_stride(0), interpolation(0), centroid(0), sample(0), matrix_layout(GLSL_MATRIX_LAYOUT_INHERITED), patch(0), precision(GLSL_PRECISION_NONE), memory_read_only(0), @@ -1095,7 +1095,7 @@ struct glsl_struct_field { } glsl_struct_field() - : type(NULL), name(NULL), location(0), offset(0), xfb_buffer(0), + : type(NULL), name(NULL), location(-1), offset(-1), xfb_buffer(0), xfb_stride(0), interpolation(0), centroid(0), sample(0), matrix_layout(0), patch(0), precision(0), memory_read_only(0), |