Make double underscore "__" an error for ES 300, but a warning for 310.

The 310 spec (and desktop specs) have clarified this is a waring, not an
error, but 300 tests still expect an error.
This commit is contained in:
John Kessenich
2015-06-29 17:19:17 -06:00
parent 63cebdb4c2
commit 1189a7bc4a
5 changed files with 35 additions and 7 deletions

View File

@@ -3,7 +3,7 @@
int imax, imin;
uint umax, umin;
vec3 x, y;
vec3 x, y; // ERROR, needs default precision
bvec3 bv;
uint uy;
@@ -67,5 +67,10 @@ void main()
vec2 v18 = unpackHalf2x16(uy);
// not present
noise2(v18);
noise2(v18); // ERROR, not present
float t__; // ERROR, no __ until revision 310
// ERROR, no __ until revision 310
#define __D
}