summaryrefslogtreecommitdiffstats
path: root/src/glsl/ir_print_visitor.cpp
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2014-05-23 14:57:49 -0600
committerBrian Paul <[email protected]>2014-05-28 15:06:07 -0600
commita7aca3919ba29ccdac01136fa9ba79f571bc797d (patch)
treeb928201cc61db62c36225acf129df4bed3754415 /src/glsl/ir_print_visitor.cpp
parentf9cecca7a6e3d9ff231075381b88d179e153a5a4 (diff)
glsl: replace strncmp("gl_") calls with new is_gl_identifier() helper
Makes things a little easier to read. Reviewed-by: Ian Romanick <[email protected]>
Diffstat (limited to 'src/glsl/ir_print_visitor.cpp')
-rw-r--r--src/glsl/ir_print_visitor.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/glsl/ir_print_visitor.cpp b/src/glsl/ir_print_visitor.cpp
index 0a7695ae1f6..418f0515153 100644
--- a/src/glsl/ir_print_visitor.cpp
+++ b/src/glsl/ir_print_visitor.cpp
@@ -146,7 +146,7 @@ print_type(FILE *f, const glsl_type *t)
print_type(f, t->fields.array);
fprintf(f, " %u)", t->length);
} else if ((t->base_type == GLSL_TYPE_STRUCT)
- && (strncmp("gl_", t->name, 3) != 0)) {
+ && !is_gl_identifier(t->name)) {
fprintf(f, "%s@%p", t->name, (void *) t);
} else {
fprintf(f, "%s", t->name);