[Bf-blender-cvs] [95eca49e545] blender2.8: DRW: Make default debug mode a bit more silent

Clément Foucault noreply at git.blender.org
Mon Dec 3 17:19:32 CET 2018


Commit: 95eca49e545dbe100a400bf84ec0a95e0091289a
Author: Clément Foucault
Date:   Mon Dec 3 15:24:21 2018 +0100
Branches: blender2.8
https://developer.blender.org/rB95eca49e545dbe100a400bf84ec0a95e0091289a

DRW: Make default debug mode a bit more silent

Use --debug-gpu for debugging non found uniforms

===================================================================

M	source/blender/draw/intern/draw_manager_data.c

===================================================================

diff --git a/source/blender/draw/intern/draw_manager_data.c b/source/blender/draw/intern/draw_manager_data.c
index e9d874bd1ee..1f6f95456a1 100644
--- a/source/blender/draw/intern/draw_manager_data.c
+++ b/source/blender/draw/intern/draw_manager_data.c
@@ -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;



More information about the Bf-blender-cvs mailing list