EEVEE: Avoid automatic printf injection in debug build

Fixes a crash in debug build when closing blender.
This commit is contained in:
Clément Foucault
2024-10-16 10:29:36 +02:00
parent c91baf1cdd
commit 8a2acc731d

View File

@@ -36,18 +36,9 @@ vec3 debug_random_color(int v)
void debug_tile_print(ShadowTileData tile, ivec4 tile_coord)
{
#if 0
/* Should be printf, but out current printf injection is based on string detection and doesn't
* check preprocessor directives. */
print f("Tile (%u, %u) in Tilemap %u: page(%u, %u, %u), cache_index %u",
tile_coord.x,
tile_coord.y,
tile_coord.z,
tile.page.x,
tile.page.y,
tile.page.z,
tile.cache_index);
#endif
/* Printf injection is based on string literal detection. Comment it out unless needed. */
/* printf("Tile (%u, %u) in Tilemap %u: page(%u, %u, %u), cache_index %u", tile_coord.x,
* tile_coord.y, tile_coord.z, tile.page.x, tile.page.y, tile.page.z, tile.cache_index); */
}
vec3 debug_tile_state_color(ShadowTileData tile)