Implement __VERSION__ macro, make ftransform() non-ES only, add more tests.
git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@22000 e7fa87d3-cd2b-0410-9028-fcbf551c1848
This commit is contained in:
parent
fb7044a9a8
commit
f78fff94e9
7 changed files with 20 additions and 4 deletions
|
|
@ -1027,8 +1027,8 @@ int MacroExpand(int atom, yystypepp* yylvalpp, int expandUndef)
|
|||
}
|
||||
|
||||
if (atom == __VERSION__Atom) {
|
||||
strcpy(yylvalpp->symbol_name, "100");
|
||||
yylvalpp->sc_int = atoi(yylvalpp->symbol_name);
|
||||
yylvalpp->sc_int = GetVersion(cpp->pC);
|
||||
sprintf(yylvalpp->symbol_name, "%d", yylvalpp->sc_int);
|
||||
UngetToken(CPP_INTCONSTANT, yylvalpp);
|
||||
|
||||
return 1;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue