Commit 450d4353 authored by Matteo Bruni's avatar Matteo Bruni Committed by Alexandre Julliard

d3dcompiler: Clear preprocessor lexer state after running it.

Otherwise state might leak to the next preprocessed shader. Signed-off-by: 's avatarMatteo Bruni <mbruni@codeweavers.com> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent 72d6654c
......@@ -475,6 +475,7 @@ int wpp_parse( const char *input, FILE *output )
}
/* Clean if_stack, it could remain dirty on errors */
while (pp_get_if_depth()) pp_pop_if();
ppy_lex_destroy();
del_special_defines();
del_cmdline_defines();
pp_pop_define_state();
......
......@@ -235,6 +235,7 @@ extern includelogicentry_t *pp_includelogiclist;
extern FILE *ppy_out;
extern char *ppy_text;
int ppy_lex(void);
int ppy_lex_destroy(void);
void pp_do_include(char *fname, int type);
void pp_push_ignore_state(void);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment