GPU: Preprocessor: Remove disabled code before builtin parsing
This avoid issues with drw_debug_ prefix being scanned in disabled code. Fixes assert in debug builds. Pull Request: https://projects.blender.org/blender/blender/pulls/147974
This commit is contained in:
committed by
Clément Foucault
parent
84d99a5902
commit
4ce37852fe
@@ -212,6 +212,9 @@ class Preprocessor {
|
||||
}
|
||||
str = remove_comments(str, report_error);
|
||||
threadgroup_variables_parsing(str);
|
||||
if (language == BLENDER_GLSL || language == CPP) {
|
||||
str = disabled_code_mutation(str, report_error);
|
||||
}
|
||||
parse_builtins(str, filename);
|
||||
if (language == BLENDER_GLSL || language == CPP) {
|
||||
if (do_parse_function) {
|
||||
@@ -221,7 +224,6 @@ class Preprocessor {
|
||||
pragma_runtime_generated_parsing(str);
|
||||
pragma_once_linting(str, filename, report_error);
|
||||
}
|
||||
str = disabled_code_mutation(str, report_error);
|
||||
str = include_parse_and_remove(str, report_error);
|
||||
str = pragmas_mutation(str, report_error);
|
||||
str = swizzle_function_mutation(str, report_error);
|
||||
|
||||
Reference in New Issue
Block a user