Fixes:
glsl-array-bounds-02 (software)
glsl-array-bounds-04
glsl-array-bounds-06 (software)
glsl-array-bounds-08
- if (strncmp(var->name, "gl_", 3) == 0 && var->mode == ir_var_uniform &&
+ if (var &&
+ strncmp(var->name, "gl_", 3) == 0 && var->mode == ir_var_uniform &&
!var->type->is_matrix()) {
ir_dereference_record *record = NULL;
if (ir->array->ir_type == ir_type_dereference_record)
!var->type->is_matrix()) {
ir_dereference_record *record = NULL;
if (ir->array->ir_type == ir_type_dereference_record)