mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-15 12:02:04 +00:00
d3dcompiler: Clear preprocessor lexer state after running it.
Otherwise state might leak to the next preprocessed shader. Signed-off-by: Matteo Bruni <mbruni@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
72d6654c73
commit
450d435306
|
@ -475,6 +475,7 @@ int wpp_parse( const char *input, FILE *output )
|
||||||
}
|
}
|
||||||
/* Clean if_stack, it could remain dirty on errors */
|
/* Clean if_stack, it could remain dirty on errors */
|
||||||
while (pp_get_if_depth()) pp_pop_if();
|
while (pp_get_if_depth()) pp_pop_if();
|
||||||
|
ppy_lex_destroy();
|
||||||
del_special_defines();
|
del_special_defines();
|
||||||
del_cmdline_defines();
|
del_cmdline_defines();
|
||||||
pp_pop_define_state();
|
pp_pop_define_state();
|
||||||
|
|
|
@ -235,6 +235,7 @@ extern includelogicentry_t *pp_includelogiclist;
|
||||||
extern FILE *ppy_out;
|
extern FILE *ppy_out;
|
||||||
extern char *ppy_text;
|
extern char *ppy_text;
|
||||||
int ppy_lex(void);
|
int ppy_lex(void);
|
||||||
|
int ppy_lex_destroy(void);
|
||||||
|
|
||||||
void pp_do_include(char *fname, int type);
|
void pp_do_include(char *fname, int type);
|
||||||
void pp_push_ignore_state(void);
|
void pp_push_ignore_state(void);
|
||||||
|
|
Loading…
Reference in a new issue