From 7f68cbdc4d9f602dc2619ac4a90283a4f057a8cb Mon Sep 17 00:00:00 2001 From: Ian Romanick Date: Tue, 5 Oct 2010 17:00:31 -0700 Subject: glsl: Add parser support for GL_ARB_explicit_attrib_location layouts Only layout(location=#) is supported. Setting the index requires GLSL 1.30 and GL_ARB_blend_func_extended. --- src/glsl/glsl_lexer.lpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/glsl/glsl_lexer.lpp') diff --git a/src/glsl/glsl_lexer.lpp b/src/glsl/glsl_lexer.lpp index ed3cb251a1..8be5c67fc2 100644 --- a/src/glsl/glsl_lexer.lpp +++ b/src/glsl/glsl_lexer.lpp @@ -218,6 +218,7 @@ void return VOID_TOK; layout { if ((yyextra->language_version >= 140) + || yyextra->ARB_explicit_attrib_location_enable || (yyextra->ARB_fragment_coord_conventions_enable)){ return LAYOUT_TOK; } else { -- cgit v1.2.3