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:
@@ -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"))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user