diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/glsl/glsl_types.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/glsl/glsl_types.cpp b/src/glsl/glsl_types.cpp index 8586b2e01f3..25927f67c44 100644 --- a/src/glsl/glsl_types.cpp +++ b/src/glsl/glsl_types.cpp @@ -172,7 +172,7 @@ glsl_type::glsl_type(const char *subroutine_name) : base_type(GLSL_TYPE_SUBROUTINE), sampler_dimensionality(0), sampler_shadow(0), sampler_array(0), sampler_type(0), interface_packing(0), - vector_elements(0), matrix_columns(0), + vector_elements(1), matrix_columns(1), length(0) { mtx_lock(&glsl_type::mutex); @@ -180,7 +180,6 @@ glsl_type::glsl_type(const char *subroutine_name) : init_ralloc_type_ctx(); assert(subroutine_name != NULL); this->name = ralloc_strdup(this->mem_ctx, subroutine_name); - this->vector_elements = 1; mtx_unlock(&glsl_type::mutex); } |