The GLSL patchers did not work correctly with a statement like bellow:
#define TextureLookup texture2D
The token 'texture2D' in the comment is not parsed with desired result.
So, add a new rule for that situation.
Change-Id: I84ae9166c0d322baf48d1c20bb74a1c27172c59f
Signed-off-by: Jinhyung Jo <jinhyung.jo@samsung.com>
return TOK_TEXTURE2D;
}
+<PP>"texture2D" {
+ struct yagl_glsl_state *state = yagl_glsl_lexer_get_extra(yyscanner);
+ yagl_glsl_state_new_str_token(state, yylval, yytext);
+ return TOK_TEXTURE2D;
+}
+
"texture3DProjLod" {
struct yagl_glsl_state *state = yagl_glsl_lexer_get_extra(yyscanner);
yagl_glsl_state_new_str_token(state, yylval, yytext);