glsl: Remove version check when looking for identifiers containing "__".
authorJason Wood <sandain@hotmail.com>
Fri, 7 Oct 2011 05:37:48 +0000 (22:37 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Fri, 7 Oct 2011 05:39:08 +0000 (22:39 -0700)
Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
src/glsl/ast_to_hir.cpp

index 4f8a5482bed587faf3d14922d2d444797d1e7e84..70afb67dfc195bb2a1411fe964737966b7f2fcbe 100644 (file)
@@ -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:
             *