GPU: Fix false positive include of debug_draw

This created unfulfilled resources binds that would
trigger an assert when running with Metal Backend.
This commit is contained in:
Clément Foucault
2023-05-16 12:54:19 +02:00
parent 88f536dc02
commit 8fb6b51410

View File

@@ -111,6 +111,8 @@ struct GPUSource {
string_preprocess();
}
if ((source.find("drw_debug_") != StringRef::not_found) &&
/* Avoid this file as it is a false positive match (matches "drw_debug_print_buf"). */
filename != "draw_debug_print_display_vert.glsl" &&
/* Avoid these two files where it makes no sense to add the dependency. */
!ELEM(filename, "common_debug_draw_lib.glsl", "draw_debug_draw_display_vert.glsl"))
{