summaryrefslogtreecommitdiff
path: root/glsl_parser_extras.cpp
diff options
context:
space:
mode:
authorKenneth Graunke <kenneth@whitecape.org>2010-06-08 22:41:30 -0700
committerKenneth Graunke <kenneth@whitecape.org>2010-06-09 11:14:58 -0700
commit8331d489487268cafb3248a598e409bff6b1b123 (patch)
tree525a7fe1533b7641ef045453e6a5523d5f28a373 /glsl_parser_extras.cpp
parent57503a22d767c146862b5e2ac0e07f8a8f5193df (diff)
Don't call _mesa_glsl_initialize_types for every builtin function.
This was clearly wrong; types are now only initialized once.
Diffstat (limited to 'glsl_parser_extras.cpp')
-rw-r--r--glsl_parser_extras.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/glsl_parser_extras.cpp b/glsl_parser_extras.cpp
index 3c895946be..5ebbc27aca 100644
--- a/glsl_parser_extras.cpp
+++ b/glsl_parser_extras.cpp
@@ -744,6 +744,7 @@ main(int argc, char **argv)
* FINISHME: by the driver. At the moment, we don't know what that is.
*/
state.language_version = 130;
+ _mesa_glsl_initialize_types(&state);
_mesa_glsl_read_ir(&state, &instructions, shader);
}