summaryrefslogtreecommitdiffstats
path: root/src/glsl/ir_validate.cpp
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2015-01-02 16:19:48 -0700
committerBrian Paul <[email protected]>2015-01-05 13:50:54 -0700
commita6822e31355b46be1cdf956f58bd2c7a4cd387f2 (patch)
tree0df30f4febe1ad2ccc9f8f35b2418885ab1ca653 /src/glsl/ir_validate.cpp
parent83b344021bb872d549709dcbbc7e68e175f70bff (diff)
glsl: use the is_gl_identifier() helper in a couple more places
Reviewed-by: Eric Anholt <[email protected]>
Diffstat (limited to 'src/glsl/ir_validate.cpp')
-rw-r--r--src/glsl/ir_validate.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/glsl/ir_validate.cpp b/src/glsl/ir_validate.cpp
index 5a6f8bbf5ee..6d5633916ba 100644
--- a/src/glsl/ir_validate.cpp
+++ b/src/glsl/ir_validate.cpp
@@ -706,7 +706,7 @@ ir_validate::visit(ir_variable *ir)
}
if (ir->data.mode == ir_var_uniform
- && strncmp(ir->name, "gl_", 3) == 0
+ && is_gl_identifier(ir->name)
&& ir->get_state_slots() == NULL) {
printf("built-in uniform has no state\n");
ir->print();