summaryrefslogtreecommitdiffstats
path: root/src/glsl/opt_dead_builtin_variables.cpp
diff options
context:
space:
mode:
authorBrian Paul <brianp@vmware.com>2015-01-02 16:19:48 -0700
committerBrian Paul <brianp@vmware.com>2015-01-05 13:50:54 -0700
commita6822e31355b46be1cdf956f58bd2c7a4cd387f2 (patch)
tree0df30f4febe1ad2ccc9f8f35b2418885ab1ca653 /src/glsl/opt_dead_builtin_variables.cpp
parent83b344021bb872d549709dcbbc7e68e175f70bff (diff)
downloadexternal_mesa3d-a6822e31355b46be1cdf956f58bd2c7a4cd387f2.zip
external_mesa3d-a6822e31355b46be1cdf956f58bd2c7a4cd387f2.tar.gz
external_mesa3d-a6822e31355b46be1cdf956f58bd2c7a4cd387f2.tar.bz2
glsl: use the is_gl_identifier() helper in a couple more places
Reviewed-by: Eric Anholt <eric@anholt.net>
Diffstat (limited to 'src/glsl/opt_dead_builtin_variables.cpp')
-rw-r--r--src/glsl/opt_dead_builtin_variables.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/glsl/opt_dead_builtin_variables.cpp b/src/glsl/opt_dead_builtin_variables.cpp
index 85c75d6..0d4e3a8 100644
--- a/src/glsl/opt_dead_builtin_variables.cpp
+++ b/src/glsl/opt_dead_builtin_variables.cpp
@@ -52,7 +52,7 @@ optimize_dead_builtin_variables(exec_list *instructions,
&& var->data.how_declared != ir_var_declared_implicitly)
continue;
- if (strncmp(var->name, "gl_", 3) != 0)
+ if (!is_gl_identifier(var->name))
continue;
/* gl_ModelViewProjectionMatrix and gl_Vertex are special because they