summaryrefslogtreecommitdiffstats
path: root/src/glsl/glsl_parser_extras.h
diff options
context:
space:
mode:
authorDylan Noblesmith <nobled@dreamwidth.org>2012-04-02 16:14:31 +0000
committerDylan Noblesmith <nobled@dreamwidth.org>2012-05-02 16:12:22 +0000
commit8c99906cf5c8825ada0699f61926864e568ca69a (patch)
tree552c164a2acd0bf5e6286550969399999ea9027e /src/glsl/glsl_parser_extras.h
parent58fee81c78c95b1b086aa39aa4e26762c8943680 (diff)
downloadexternal_mesa3d-8c99906cf5c8825ada0699f61926864e568ca69a.zip
external_mesa3d-8c99906cf5c8825ada0699f61926864e568ca69a.tar.gz
external_mesa3d-8c99906cf5c8825ada0699f61926864e568ca69a.tar.bz2
glsl: add gl_context member
Reviewed-by: Brian Paul <brianp@vmware.com>
Diffstat (limited to 'src/glsl/glsl_parser_extras.h')
-rw-r--r--src/glsl/glsl_parser_extras.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/glsl/glsl_parser_extras.h b/src/glsl/glsl_parser_extras.h
index 55676f5..1a909c6 100644
--- a/src/glsl/glsl_parser_extras.h
+++ b/src/glsl/glsl_parser_extras.h
@@ -57,7 +57,7 @@ struct glsl_switch_state {
};
struct _mesa_glsl_parse_state {
- _mesa_glsl_parse_state(struct gl_context *ctx, GLenum target,
+ _mesa_glsl_parse_state(struct gl_context *_ctx, GLenum target,
void *mem_ctx);
/* Callers of this ralloc-based new need not call delete. It's
@@ -77,6 +77,7 @@ struct _mesa_glsl_parse_state {
ralloc_free(mem);
}
+ struct gl_context *const ctx;
void *scanner;
exec_list translation_unit;
glsl_symbol_table *symbols;