From 62c0938639401dbf75c61ed7f6f10fd860994cfd Mon Sep 17 00:00:00 2001 From: Ian Romanick Date: Fri, 9 Nov 2012 12:26:42 -0800 Subject: glsl: Allow layout qualifiers in GLSL 3.00 ES Note that while 'packed' is a reserved word in GLSL ES, row_major is not. This means that we have to use the string-based matching for that. Signed-off-by: Ian Romanick Reviewed-by: Kenneth Graunke Reviewed-by: Eric Anholt Acked-by: Carl Worth --- src/glsl/glsl_parser_extras.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/glsl/glsl_parser_extras.cpp') diff --git a/src/glsl/glsl_parser_extras.cpp b/src/glsl/glsl_parser_extras.cpp index 1cf4571..d360892 100644 --- a/src/glsl/glsl_parser_extras.cpp +++ b/src/glsl/glsl_parser_extras.cpp @@ -279,6 +279,10 @@ _mesa_glsl_parse_state::process_version_directive(YYLTYPE *locp, int version, if (this->language_version >= 140) { this->ARB_uniform_buffer_object_enable = true; } + + if (this->language_version == 300 && this->es_shader) { + this->ARB_explicit_attrib_location_enable = true; + } } const char * -- cgit v1.1