From c475a54578bf5473c6c62bc5468ef4fe555164d7 Mon Sep 17 00:00:00 2001 From: Jason Wood Date: Thu, 6 Oct 2011 22:37:48 -0700 Subject: [PATCH] glsl: Remove version check when looking for identifiers containing "__". Signed-off-by: Kenneth Graunke --- src/glsl/ast_to_hir.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/glsl/ast_to_hir.cpp b/src/glsl/ast_to_hir.cpp index 4f8a5482bed..70afb67dfc1 100644 --- a/src/glsl/ast_to_hir.cpp +++ b/src/glsl/ast_to_hir.cpp @@ -2803,8 +2803,7 @@ ast_declarator_list::hir(exec_list *instructions, _mesa_glsl_error(& loc, state, "identifier `%s' uses reserved `gl_' prefix", decl->identifier); - else if (state->language_version >= 130 && - strstr(decl->identifier, "__")) { + else if (strstr(decl->identifier, "__")) { /* From page 14 (page 20 of the PDF) of the GLSL 1.10 * spec: * -- 2.30.2