projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
93e719b
)
glcpp: Reject token pasting operator in GLES
author
Matt Turner
<mattst88@gmail.com>
Tue, 27 Nov 2012 20:18:02 +0000
(12:18 -0800)
committer
Ian Romanick
<ian.d.romanick@intel.com>
Fri, 11 Jan 2013 18:57:25 +0000
(10:57 -0800)
The GLSL ES 3.0 spec (Section 12.17) says:
"GLSL ES 1.00 removed token pasting and other functionality."
NOTE: This is a candidate for the stable branches.
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Carl Worth <cworth@cworth.org>
src/glsl/glcpp/glcpp-lex.l
patch
|
blob
|
history
diff --git
a/src/glsl/glcpp/glcpp-lex.l
b/src/glsl/glcpp/glcpp-lex.l
index fd28711d12cebec2665f8380cb0b013a3c96564e..a029f6203673775b53dd8cd1cbc2e5aa0b0f1d81 100644
(file)
--- a/
src/glsl/glcpp/glcpp-lex.l
+++ b/
src/glsl/glcpp/glcpp-lex.l
@@
-260,6
+260,8
@@
HEXADECIMAL_INTEGER 0[xX][0-9a-fA-F]+[uU]?
}
"##" {
+ if (parser->is_gles)
+ glcpp_error(yylloc, yyextra, "Token pasting (##) is illegal in GLES");
return PASTE;
}