Before generating HIR for user code, generate constructors for built-in types
authorIan Romanick <ian.d.romanick@intel.com>
Fri, 26 Mar 2010 00:02:22 +0000 (17:02 -0700)
committerIan Romanick <ian.d.romanick@intel.com>
Fri, 26 Mar 2010 00:02:22 +0000 (17:02 -0700)
ast_to_hir.cpp

index 740adb9f43cf9db530b44e00283dd88cc549ec10..513a948a3ceebebd8c7e6401336afbd218bbfad5 100644 (file)
@@ -62,6 +62,7 @@ _mesa_ast_to_hir(exec_list *instructions, struct _mesa_glsl_parse_state *state)
    struct simple_node *ptr;
 
    _mesa_glsl_initialize_variables(instructions, state);
+   _mesa_glsl_initialize_constructors(instructions, state);
 
    state->current_function = NULL;