diff options
author | marha <marha@users.sourceforge.net> | 2014-05-29 20:46:21 +0200 |
---|---|---|
committer | marha <marha@users.sourceforge.net> | 2014-05-29 20:46:21 +0200 |
commit | 816a5430313e07083c5325f0a430126a2e10ec41 (patch) | |
tree | 82e47992f52149b83238690062e0c56202cb2ebb /mesalib/src/glsl/ir.h | |
parent | c2dfa0e8c98b06e050c530d704d75a7e4edad02e (diff) | |
download | vcxsrv-816a5430313e07083c5325f0a430126a2e10ec41.tar.gz vcxsrv-816a5430313e07083c5325f0a430126a2e10ec41.tar.bz2 vcxsrv-816a5430313e07083c5325f0a430126a2e10ec41.zip |
mesa xkeyboard-config git update 29 Mar 2014
xkeyboard-config commit bc3ac1b0d152e929b3532a541596cf9fe286bb9e
mesa commit dfd117b8570a69a429e660c069997e78b181ab6d
Diffstat (limited to 'mesalib/src/glsl/ir.h')
-rw-r--r-- | mesalib/src/glsl/ir.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/mesalib/src/glsl/ir.h b/mesalib/src/glsl/ir.h index ef4a12d60..80609829e 100644 --- a/mesalib/src/glsl/ir.h +++ b/mesalib/src/glsl/ir.h @@ -2342,6 +2342,15 @@ prototype_string(const glsl_type *return_type, const char *name, const char * mode_string(const ir_variable *var); +/** + * Built-in / reserved GL variables names start with "gl_" + */ +static inline bool +is_gl_identifier(const char *s) +{ + return s && s[0] == 'g' && s[1] == 'l' && s[2] == '_'; +} + extern "C" { #endif /* __cplusplus */ |