diff options
author | Paul Berry <[email protected]> | 2013-09-27 17:18:14 -0700 |
---|---|---|
committer | Paul Berry <[email protected]> | 2013-10-10 14:27:05 -0700 |
commit | 1838df97a28cf859f20d6535c00509574b200152 (patch) | |
tree | dc21b66d4b87af03d91f6840caab3774ab0b1dce /src/glx/indirect_vertex_array.c | |
parent | 6a157f2e3345faf23041eaefb47183a6debacb6b (diff) |
glsl: Refactor code to check that identifier names are valid.
GLSL reserves identifiers beginning with "gl_" or containing "__", but
we haven't been consistent about enforcing this rule. This patch
makes a new function to check whether identifier names are valid. In
the process it closes a loophole where we would previously allow
function argument names to contain "__".
v2: Rename check_valid_identifier() -> validate_identifier(). Add
curly braces in validate_identifier().
Reviewed-by: Kenneth Graunke <[email protected]>
Reviewed-by: Ian Romanick <[email protected]>
Diffstat (limited to 'src/glx/indirect_vertex_array.c')
0 files changed, 0 insertions, 0 deletions