glsl: make use of glsl_type::is_double()
[mesa.git] / src / compiler / glsl / link_uniforms.cpp
index 925699641e587579f1e6b67e9120438e589574ac..b462cb9d59eeb1490039a4a7b30fd2f8db465efd 100644 (file)
@@ -772,7 +772,7 @@ private:
 
          if (type->without_array()->is_matrix()) {
             const glsl_type *matrix = type->without_array();
-            const unsigned N = matrix->base_type == GLSL_TYPE_DOUBLE ? 8 : 4;
+            const unsigned N = matrix->is_double() ? 8 : 4;
             const unsigned items =
                row_major ? matrix->matrix_columns : matrix->vector_elements;