diff options
author | Mike Erwin <significant.bit@gmail.com> | 2016-11-08 07:28:40 +0300 |
---|---|---|
committer | Mike Erwin <significant.bit@gmail.com> | 2016-11-08 07:28:40 +0300 |
commit | 66d7f01eccdd9f82a4929f2873639e4012362090 (patch) | |
tree | 5190140c902f0bc629186ecc0c51f2cffbe1b627 /source/blender/gpu/gawain | |
parent | de101fe9a874f616ac0eb27942e7956345dbab8e (diff) |
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.
Diffstat (limited to 'source/blender/gpu/gawain')
-rw-r--r-- | source/blender/gpu/gawain/common.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/gpu/gawain/common.h b/source/blender/gpu/gawain/common.h index 184c907967e..41ce8c22936 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> |