projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9fb6f59
)
glsl: Don't allow invalid identifiers as struct names.
author
Paul Berry
<stereotype441@gmail.com>
Sat, 28 Sep 2013 00:47:02 +0000
(17:47 -0700)
committer
Paul Berry
<stereotype441@gmail.com>
Thu, 10 Oct 2013 21:27:17 +0000
(14:27 -0700)
Fixes piglit test
spec/glsl-1.10/compiler/struct/struct-name-uses-gl-prefix.vert.
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/glsl/ast_to_hir.cpp
patch
|
blob
|
history
diff --git
a/src/glsl/ast_to_hir.cpp
b/src/glsl/ast_to_hir.cpp
index 1a5df71201d6e3b9175b4401589922eac1e24f54..c7c0a0e2a50f0d7e38214e62210f53388f31ec87 100644
(file)
--- a/
src/glsl/ast_to_hir.cpp
+++ b/
src/glsl/ast_to_hir.cpp
@@
-4575,6
+4575,8
@@
ast_struct_specifier::hir(exec_list *instructions,
false,
false /* allow_reserved_names */);
+ validate_identifier(this->name, loc, state);
+
const glsl_type *t =
glsl_type::get_record_instance(fields, decl_count, this->name);