hash_table *glsl_type::record_types = NULL;
void *glsl_type::ctx = NULL;
-static void
-init_talloc_type_ctx(void)
+void
+glsl_type::init_talloc_type_ctx(void)
{
if (glsl_type::ctx == NULL) {
glsl_type::ctx = talloc_init("glsl_type");
return is_array() ? length : -1;
}
+private:
/**
* talloc context for all glsl_type allocations
*
*/
static TALLOC_CTX *ctx;
-private:
+ void init_talloc_type_ctx(void);
+
/** Constructor for vector and matrix types */
glsl_type(GLenum gl_type,
unsigned base_type, unsigned vector_elements,