[Bf-blender-cvs] [66d7f01] blender2.8: Gawain: less error checking in release builds

Mike Erwin noreply at git.blender.org
Tue Nov 8 05:41:19 CET 2016


Commit: 66d7f01eccdd9f82a4929f2873639e4012362090
Author: Mike Erwin
Date:   Tue Nov 8 05:28:40 2016 +0100
Branches: blender2.8
https://developer.blender.org/rB66d7f01eccdd9f82a4929f2873639e4012362090

Gawain: less error checking in release builds

Gawain does very strict runtime checking to help us catch coding errors. Final release should disable most of these checks, so I'm disabling now for all non-debug builds.

When writing Blender code that uses Gawain, always make debug builds and test there! "make lite debug" is my favorite.

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

M	source/blender/gpu/gawain/common.h

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

diff --git a/source/blender/gpu/gawain/common.h b/source/blender/gpu/gawain/common.h
index 184c907..41ce8c2 100644
--- a/source/blender/gpu/gawain/common.h
+++ b/source/blender/gpu/gawain/common.h
@@ -11,7 +11,7 @@
 
 #pragma once
 
-#define TRUST_NO_ONE 1
+#define TRUST_NO_ONE defined(NDEBUG)
 
 #include <GL/glew.h>
 #include <stdbool.h>




More information about the Bf-blender-cvs mailing list