DRW: Make default debug mode a bit more silent

Use --debug-gpu for debugging non found uniforms
This commit is contained in:
Clément Foucault
2018-12-03 15:24:21 +01:00
parent 0759480529
commit 95eca49e54

View File

@@ -122,8 +122,8 @@ static void drw_shgroup_uniform(DRWShadingGroup *shgroup, const char *name,
}
if (location == -1) {
if (G.debug & G_DEBUG)
fprintf(stderr, "Pass : %s, Uniform '%s' not found!\n", shgroup->pass_parent->name, name);
if (G.debug & G_DEBUG_GPU)
fprintf(stderr, "Warning: Pass : %s, Uniform '%s' not found!\n", shgroup->pass_parent->name, name);
/* Nice to enable eventually, for now eevee uses uniforms that might not exist. */
// BLI_assert(0);
return;