assert(((glsl_type *) entry->data)->matrix_columns == columns);
assert(((glsl_type *) entry->data)->explicit_stride == explicit_stride);
+ const glsl_type *t = (const glsl_type *) entry->data;
+
mtx_unlock(&glsl_type::hash_mutex);
- return (const glsl_type *) entry->data;
+ return t;
}
assert(!row_major);
assert(((glsl_type *) entry->data)->length == array_size);
assert(((glsl_type *) entry->data)->fields.array == base);
+ glsl_type *t = (glsl_type *) entry->data;
+
mtx_unlock(&glsl_type::hash_mutex);
- return (glsl_type *) entry->data;
+ return t;
}
bool
assert(strcmp(((glsl_type *) entry->data)->name, name) == 0);
assert(((glsl_type *) entry->data)->packed == packed);
+ glsl_type *t = (glsl_type *) entry->data;
+
mtx_unlock(&glsl_type::hash_mutex);
- return (glsl_type *) entry->data;
+ return t;
}
assert(((glsl_type *) entry->data)->length == num_fields);
assert(strcmp(((glsl_type *) entry->data)->name, block_name) == 0);
+ glsl_type *t = (glsl_type *) entry->data;
+
mtx_unlock(&glsl_type::hash_mutex);
- return (glsl_type *) entry->data;
+ return t;
}
const glsl_type *
assert(((glsl_type *) entry->data)->base_type == GLSL_TYPE_SUBROUTINE);
assert(strcmp(((glsl_type *) entry->data)->name, subroutine_name) == 0);
+ glsl_type *t = (glsl_type *) entry->data;
+
mtx_unlock(&glsl_type::hash_mutex);
- return (glsl_type *) entry->data;
+ return t;
}