From 5185a5f7d5654c9202c226015c4daeee43d9b897 Mon Sep 17 00:00:00 2001 From: Ian Romanick Date: Mon, 29 Mar 2010 15:20:42 -0700 Subject: Add generate_temporary to generate an anonymous temporary --- glsl_parser_extras.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'glsl_parser_extras.h') diff --git a/glsl_parser_extras.h b/glsl_parser_extras.h index dbe7c17302..96c975ba11 100644 --- a/glsl_parser_extras.h +++ b/glsl_parser_extras.h @@ -53,6 +53,9 @@ struct _mesa_glsl_parse_state { /** Was there an error during compilation? */ bool error; + + /** Index of last generated anonymous temporary. */ + unsigned temp_index; }; typedef struct YYLTYPE { -- cgit v1.2.3